SBX - Search With Button

SBX - Forum Post Title

WEB API of Dynamic 365 BC , How can i add PUT data in D365 BC

Dynamics 365 Business Central Forum

Anju Sardana asked a question on 13 Aug 2018 2:06 AM

Question Status

Suggested Answer

i got the Article 

https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-develop-connect-apps#see-also

It is to fetch data from D365BC version 

I want to PUT data using WEB API in D365 BC . Suggest me the same

Reply
Suggested Answer

You can use HttpClient and send a PUT request by passing the JSON object as input.

Reply
Anju Sardana responded on 13 Aug 2018 10:54 PM

 Hi

Thanks for sharing HttpClient , I am facing below issue in Postman

My Main aim to insert Sales data using WEB API ODATA

Thanks 

Anju

Reply
Suggested Answer

You can use the REST APIs at this url:

https://api.businesscentral.dynamics.com/v1.0/<yourtenantID>/api/beta.

and from this url you can launch a PUT request in postman by passing the JSON object in the request body.

If you're using OData, I think your problem is due to the ETag missing (you need to retrieve them froma Get request before the update).

Check also this thread:

https://community.dynamics.com/nav/f/34/t/232296

Reply
Suggested Answer

You can use HttpClient and send a PUT request by passing the JSON object as input.

Reply
Suggested Answer

You can use the REST APIs at this url:

https://api.businesscentral.dynamics.com/v1.0/<yourtenantID>/api/beta.

and from this url you can launch a PUT request in postman by passing the JSON object in the request body.

If you're using OData, I think your problem is due to the ETag missing (you need to retrieve them froma Get request before the update).

Check also this thread:

https://community.dynamics.com/nav/f/34/t/232296

Reply

SBX - Two Col Forum

SBX - Migrated JS