shareplum
shareplum copied to clipboard
Update Multiple Choice field value in list items
I do not manage to update multiple choice field value in list items. Is it possible?
I think it should be. Do a GetListItems on a List that has the multiple choice to determine the correct format for your data.
Not sure, if this holds for every multiple choice type and Sharepoint version, but this worked for me (assuming choices [OptionA, OptionB, OptionC]:
my_data = {
'MyNumericColumnName': 3.141,
'MyMultipleChoiceColumnName': ';#OptionA;#OptionB;#;#OptionC;#'
}
sp_list.UpdateListItems(data=my_data, kind='New')