Announcements
I am trying to perform a PATCH request in postman on a Business Central Cloud record.
I have created the Web Service in Business Central, and published. I can perform a GET and view the record in postman.
I am trying to perform a PATCH to update any of the fields. The request looks like:
My request body is set as:
Thanks for the update.
The issue has been resolved by adding the following to the headers:
content-type: application/json;EEE754Compatible=true
Our table has a Primary Key of ID which is an integer which seems to be the problem, and the need for the additional content-type.
This blog post identified the issue: forum.mibuso.com/.../api-odata-batch-patch-requests-with-decimal-values
Thank you.
The issue has been resolved by adding the following to the headers:
content-type: application/json;EEE754Compatible=true
Our table has a Primary Key of ID which is an integer which seems to be the problem, and the need for the additional content-type.
This blog post identified the issue: https://forum.mibuso.com/discussion/75858/api-odata-batch-patch-requests-with-decimal-values
Thank you.
Only difference I can see, is that I specify the customer no like this:
Customer_Card(No='20000')
While you do it like this:
Customer_Card(20000)
But I would suspect that this would give a different error message if that was not correct.
Hi,
I can't really see any problems there, so I tried it out here, also with Postman:
PATCH api.businesscentral.dynamics.com/.../Customer_Card(No='20000')
BODY
{"Name": "Trey 2"}
HEADERS
Content-Type application/json
If-Match *
And this works fine. So to me it looks like you are doing everything correctly.
My first idea was that you are missing the Content-Type header, but you are not.
It's like maybe there is an invisible character in the Body? Try to re-type it (no copy and paste).
André Arnaud de Cal...
293,296
Super User 2025 Season 1
Martin Dráb
232,093
Most Valuable Professional
nmaenpaa
101,156
Moderator