how do can we update multichoice column using powershell csom ?
we need to update multichoice column for a list
any help would be appreciated
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityYou update it with an array:
$listItem["multichoicecolumn"]="Choice 1","Choice 2","Choice 3"
$listItem.Update()
$context.ExecuteQuery()
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'