Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

Reading JSON Payload from Postman to Business Central

(1) ShareShare
ReportReport
Posted on by 10
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
  • CU21010025-0 Profile Picture
    CU21010025-0 10 on at
    Reading JSON Payload from Postman to Business Central
    Thank you very much all. Issue has been solved. As Bilal pinpointed, it was due to the variable name being wrong on the function.
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    Khushbu Rajvi. 7,144 on at
  • gdrenteria Profile Picture
    gdrenteria 13,350 Most Valuable Professional on at
    Reading JSON Payload from Postman to Business Central

    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
    Khushbu Rajvi. 7,144 on at
    Reading JSON Payload from Postman to Business Central
  • Verified answer
    Bilal Haider Profile Picture
    Bilal Haider 113 on at
    Reading JSON Payload from Postman to Business Central
    Hi, 
     
    Your procedure is expecting a string named JsonObjectText but you are sending with the name "Customer" in the payload.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Share Your Event with the Community

Jump start your event engagement! 📢

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,961 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,717 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans