0

how do can we update multichoice column using powershell csom ?

we need to update multichoice column for a list

any help would be appreciated

2 Answers 2

0

You update it with an array:

$listItem["multichoicecolumn"]="Choice 1","Choice 2","Choice 3"
$listItem.Update()
$context.ExecuteQuery()
0

Sample test script by pnp PowerShell(SharePoint 2013).

Connect-PNPOnline -Url http://sp
$options = "A", "B"
Set-PnPListItem -List MyList -Identity 1 -Values @{"MultiChoice" = $options}
Write-Host 'done'
1
  • Nice, I also prefer PnP, but the OP asked for CSOM :)
    – vilmarci
    Jul 4, 2019 at 7:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.