PnP-PowerShell icon indicating copy to clipboard operation
PnP-PowerShell copied to clipboard

How to convert a Choice field to MultiChoice

Open Lucho1970 opened this issue 7 years ago • 2 comments

I need to convert a Choice field to a MultiChoice field. The way I have accomplished this so far is as follows:

$field = Get-PnpField FieldName
$field.TypeAsString = "MultiChoice"
$field.UpdateAndPushChanges($true)
Invoke-PnPQuery

In the GUI, the field is now a MultiChoice field. But when I try to access this field in PowerShell I get the following error: Get-PnPField : Field or property "EditFormat" does not exist.

I cannot make any other updates to the field in PowerShell. I have to use the SharePoint UI to change it back to a RadioButton or Dropdown. Then it will work once again. I tried clearing that property, but it doesn't let me set it to anything by RadioButton or Dropdown.

Is there another way that I should be changing this field?

Lucho1970 avatar Oct 29 '19 17:10 Lucho1970

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Oct 29 '19 17:10 ghost

FYI - this appears to be fixed at least as of 3.18.2002.0.

SpliceVW avatar Feb 18 '20 14:02 SpliceVW