Posting New SharePoint List Item

I thought I had this figured out but it seems that the JSON body formatting for the fields for a SharePoint List item creation is off here.

This is a sample of the body I am sending as JSON.
image

I am doing a POST request like this per the API doc.

https://graph.microsoft.com/v1.0/sites/cb6c5b34-353c-4cc6-957b-dd29c2ff9167/lists/0e530092-2c3e-4225-b42b-fddd0605cac2/items

But for some reason I am getting a General Exception error.

When I did this with an earlier version of the workflow and I had the JSON formatting without the “fields” key – it worked but it created an entry with no data all blank columns.

I tried removing some of the fields and doing one at a time and it gets the error each time.

Any idea what I might be doing wrong?

I actually figured this out. some of the fields being written were number and on the SharePoint side they needed to be string/text.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.