I have a sharepoint list and I want to set some value inside it. The multi-choice field is already defined and it is already pointing on data. I just want to pick one of the choices and set it in the field. I don't want to create new values and adding them inside.
$weburl = "http://sdfsdfsdf" $web = Get-SPWeb $webUrl $list=$web.GetList("/Lists/ListName") $choice = # what do i have to put here ? $newItem = $list.AddItem() $newItem["multiChoiceField"] = $choice $newItem.update()