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

Community site session details

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

Reading JSON Payload from Postman to Business Central

(3) ShareShare
ReportReport
Posted on by 16
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)
  • CU04022109-0 Profile Picture
    2 on at
    Reading JSON Payload from Postman to Business Central
    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
  • CU21010025-0 Profile Picture
    16 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
    19,093 Super User 2025 Season 2 on at
  • Gerardo Rentería García Profile Picture
    23,454 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
    19,093 Super User 2025 Season 2 on at
    Reading JSON Payload from Postman to Business Central
  • Verified answer
    Bilal Haider Profile Picture
    398 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,406

#2
Sumit Singh Profile Picture

Sumit Singh 2,852

#3
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 2,217

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans