ODBC guide

Update multi-choice fields (generic API call)


Uses a generic API call to update fields that allow multiple value selection (Lookup or MultiChoice). You must supply the OData type for the field.

SELECT * from generic_request
WITH(
	  Url='https://graph.microsoft.com/v1.0/sites/root/lists/1d3126af-14ca-46c7-a82a-4865873756c6/items/1'
    , RequestMethod='PATCH'
    , Filter='$.fields'
    , Headers='Content-Type: application/json || x-header2: abcd'	  
	, Body='{
   "fields": {
      "MyMultiSelectLookupColLookupId@odata.type": "Collection(Edm.Int32)" 
     ,"MyMultiSelectLookupColLookupId": [ 1 ,  2 ]
	 
     ,"MyMultiChoiceColumn@odata.type": "Collection(Edm.String)" 
     ,"MyMultiChoiceColumn": [ "AAA" ,  "BBB" ]	 
	 
     ,"MySingleChoiceColumnLookupId":1
    }
  }'
)