Check out the latest Business Central updates!Learn about the key capabilities and features of Dynamics 365 Business Central and experience some of the new features.
Download overview guide | Watch Business Central video
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | Preview 2020 Release Wave 1 Timeline
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
Need to know how to use POST method using HTTPCLIENT.
I am trying to provide parameter to Web Service in D365BC.
Thanks in advance.
HttpClient.DefaultRequestHeaders.Add('User-Agent', 'Dynamics 365');
HttpClient.Post(Url, HttpContent, HttpResponse);
This is an example on how to call POST method of an HttpClient.
Don't hesitate if If you need more details or explanations.
Please verify my answer if you find my answer helpful. Doing so you'll show other community members that there was found a solution and you credit my help.
Thanks Nissay for the reply,
Now i am getting below error:
"error : internal server error (500)"
Well, this simply means that the server you are sending your request to, encounters an unexpected condition which prevented it from fulfilling you request.
Check the Soap message you are sending and ensure you are sending all mandatory Xml elements depending on the WSDL of your web service. you can also, on the server you are calling, check the event viewer for more details on how this error occurred (it depends on you server administration and your code - to have inputs on event viewer).
Yes, Was passing wrong value. Thanks for the solution.
Business Applications communities