G_S
G_S

Reputation: 105

Setting default value for Choice Column in Document Library

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

Answers (1)

Michael Han
Michael Han

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:

enter image description here

Upvotes: 1

Related Questions