Reputation: 105
I am trying to use below commands for setting the default value for my choice column to "yes" but it does not work using PnP Powershell. Can someone suggest me what am i missing here
Option 1;
Set-PnPDefaultColumnValues -List Documents -Field "Fully Executed" -Value "Yes"
Option 2
Set-PnPField -Identity "Fully Executed" -List "Documents" -Values @{DefaultValue="Yes"}
Upvotes: 1
Views: 1214
Reputation: 3655
You need to use Internal Name of the column, "Fully Executed" is the display name. It's internal name should be Fully_x0020_Executed
.
You could check it in list settings-> click the column, you will see the internal name in the url:
Upvotes: 1