Thursday, June 25, 2020

Business Central Integration with Rest API – Part 3 (OnPrem & SaaS)

Dear Reader’s, I am sharing simple REST API integration with Business Central 2020 Wave 1 release. In previous Part-1 & Part-2, I have demonstrated GET method of API. In this Part, I will explain POST method, where a data request & response will be handled. I want to thank the creator of API and available for us to check & learn the POST method (Request & Response handling).

Below sample will run on both OnPrem & SaaS as well. In the following example we will call an API request to Create resource by supplying Name & Job details. And in response API will return Id & Created At along with the request info Name & Job.

API URL: https://reqres.in/api/users

Sample Request: { “name”: “Your Name”, “job”: “Your Job Name” }

Response: {“name”:”Your Name”,”job”:”Your Job Name”,”id”:”Numeric”,”createdAt”:”DateTime in YYYY-MM-DDTHH:MM:SS.sssZ”}

Click hear to read more

No comments:

Post a Comment