Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

PATCH Request Business Central Web Service

(0) ShareShare
ReportReport
Posted on by 10

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. 

pastedimage1661445134426v1.png

I am trying to perform a PATCH to update any of the fields. The request looks like:

pastedimage1661445198594v2.png

My request body is set as:

{
    "Code1""Test"
}
The Primary Key of the "Outbound Transaction" is 12.
Please could anyone advise on anything I should be doing differently.
The page is a standard page, not an API page. 
Thank you. 
  • Suggested answer
    Nitin Verma Profile Picture
    21,473 Moderator on at
    RE: PATCH Request Business Central Web Service

    Thanks for the update.

  • Suggested answer
    TESDEveloper Profile Picture
    10 on at
    RE: PATCH Request Business Central Web Service

    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.

  • TESDEveloper Profile Picture
    10 on at
    RE: PATCH Request Business Central Web Service

    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. 

  • Lars Lohndorf-Larsen Profile Picture
    on at
    RE: PATCH Request Business Central Web Service

    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.

  • Lars Lohndorf-Larsen Profile Picture
    on at
    RE: PATCH Request Business Central Web Service

    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).

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,296 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,093 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans