web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Reading JSON Payload from Postman to Business Central

(9) ShareShare
ReportReport
Posted on by 30
Hi All,
 
I am facing an error when trying to post a JSON payload from POSTMAN to Business Central.
 
I have copied the function "ReadJSON" from https://www.dvlprlife.com/2022/12/dynamics-365-business-central-read-a-json-file-with-al/ and using the same customer payload on the page.
 
Please attached the screenshots.
 
The error being encountered is below:
{
    "error": {
        "code": "BadRequest",
        "message": "The parameter 'Customer' in the request payload is not a valid parameter for the operation 'ExperimentsAPI_ReadJSON'.  CorrelationId:  49c0c920-0585-4dc6-9fe2-6bdddb2db9e7."
    }
}
 
Can anyone please advise or help. Thank you.
 
Regards,
AN
I have the same question (0)
  • Verified answer
    Bilal Haider Profile Picture
    485 on at
    Hi, 
     
    Your procedure is expecting a string named JsonObjectText but you are sending with the name "Customer" in the payload.
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    22,424 Super User 2026 Season 1 on at
  • Gerardo Rentería García Profile Picture
    26,790 Most Valuable Professional on at

    Hi, good day
    I hope this can help you, and give you some hints.

    Codeunit API’s in Business Central – Kauffmann @ Dynamics 365 Business Central

    Best Regards
    Gerardo

  • Suggested answer
    Khushbu Rajvi. Profile Picture
    22,424 Super User 2026 Season 1 on at
  • CU21010025-0 Profile Picture
    30 on at
    Thank you very much all. Issue has been solved. As Bilal pinpointed, it was due to the variable name being wrong on the function.
  • CU04022109-0 Profile Picture
    4 on at
    you mentioned that it was due to the variable name which being wrong on the function.
     
    can you please share your corrected code? i a still having the following error:
    {
        "error": {
            "code": "BadRequest",
            "message": "The parameter 'Customer' in the request payload is not a valid parameter for the operation 'ExperimentsAPI_ReadJSON'.  CorrelationId:  49c0c920-0585-4dc6-9fe2-6bdddb2db9e7."
        }
    }
     
    Thank you
  • freskito365 Profile Picture
    8 on at
    In my case the issue was because the parameter of the procedure had to be lowercase (or at least first character)
  • Suggested answer
    YUN ZHU Profile Picture
    100,974 Super User 2026 Season 1 on at
    Hi, hope the following helps as well.
    Dynamics 365 Business Central: Using OData V4 unbound action (Codeunit API?) to communicate and exchange data seamlessly
     
    Thanks.
    ZHU
  • Suggested answer
    OussamaSabbouh Profile Picture
    16,074 Super User 2026 Season 1 on at
    Hello AN,
     
    Your OData action doesn’t have a parameter called Customer. In your AL screenshot the procedure is ReadJSON(JsonObjectText: Text), so the only valid payload parameter name is JsonObjectText (and it’s a Text parameter, not a JSON object). That’s why BC replies: “parameter 'Customer' … is not valid”. Fix it by either (a) send the JSON as a string in that parameter, e.g. {"JsonObjectText":"{ \"Customer\": { \"No\": \"10000\", ... } }"} (quotes escaped), or (b) change the action signature to accept the fields you want as separate simple parameters (or better: build a proper API page for Customer and POST to it). The dvlprlife example reads JSON from Text, so Postman must wrap it exactly the same way.
     
    Regards,
    Oussama Sabbouh

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,086 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,290 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,218

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans