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

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'
  • Nice, I also prefer PnP, but the OP asked for CSOM :) – vilmarci Jul 4 at 7:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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