I'm trying to create new SharePoint ListItem using Microsoft Graph.
To create a list item with simple fields like Title, my POST body looks like:
{
"fields":{
"Title":"Ehsan's REST"
}
}
But as soon as I add a field with the multichoice value I get The request is malformed or incorrect.
error.
example:
{
"fields":{
"Title":"Ehsan's REST",
"Languages": ["English","French"]
}
}
During my search I found this forum post where SharePoint API (not Graph ) requires a metadata attribute to be added to the collection as an object:
"InternalFieldName":{
"__metadata":{"type":"Collection(Edm.String)"},
"results":["Value1","Value2","Value3"]
}
There's an open issue on microsoft graph doc github related to this as well.
Any suggestions?