Good day everyone, I am working on a SharePoint integration and at this point the integration is working. My use case is that we are storing files on SharePoint and also adding metadata alone with the file uploads. My problem is with the metadata that I am uploading. At the moment we can update the custom columns added to the file as long as it is a single-entry item. The moment I try to update data on a multi-select column my API request becomes invalid. If I use this call then the data is updated with the following URL: https://graph.microsoft.com/v1.0/sites/{{SiteID}}/lists/{{ListID}}/items/{{ItemID}} { "Title": "Order Creation", "Language": "EN", "DocumentOwner": "GTO S2P", "CF_x002f_LF": "LF", "DocType": "P", "DocID": "TRB.02.01.04", "Revision": 1.1, "Appendix": false } However the moment that I use this call then it fails: { "Title": "Order Creation", "Language": "EN", "DocumentOwner": "GTO S2P", "CF_x002f_LF": "LF", "DocType": "P", "DocID": "TRB.02.01.04", "Revision": 1.1, "Appendix": false, "AssignedAffiliateLookupId@odata.type": "Collection(Edm.String)", "AssignedAffiliate": [ "BK10", "ED10", "FR20" ] } Does anyone have an idea of what my problem is with the AssinedAffiliate column? I have tried a few different things but still stuck.
asked
Rick van Huffel
1 answers
0
I was able to solve the problem and it relates to the AssignedAffiliate@odata.type. Below is a working example of the JSON that needs to be sent.