Breaking news from around the world
Get the Bing + MSN extension
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 | View virtual launch event
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 | Talent TechTalks | Upcoming TechTalks
I want to Consume Customer Details Rest API Url in MSFT D365 Business Central for PUT, POST and GET Request. [Ther is One form of Java Application of Customer details when a user enters the details of the customer then that Customer details also insert in Customer form in Business Central.]
Any help greatly appreciated.
Using REST APIs in D365BC is just like consuming REST APIs on other web applications.
You need to send an HTTP request to the API endpoint and then reading the response content.
All details here:
Could you elaborate related with coding such as how to send HTTTP Request and how to Parse URL in D365 BC. Because I did'nt work with REST API Services.
You’ve to send an HTTP request to the API endpoint and read the response.
This is a C# sample that calls a generic API, I think in Java is quite the same:
static void Main(string args)
using (var client = new HttpClient())
client.BaseAddress = new Uri("http://localhost:60464/api/");
var responseTask = client.GetAsync("student");
var result = responseTask.Result;
var readTask = result.Content.ReadAsAsync<Student>();
var students = readTask.Result;
foreach (var student in students)
Thanks for the Reply.
but where I write above code then How it consume in Business Central. I didn't understand.
Could you provide step by step procedure if it Possible?
This is My Url "http://localhost:52944/api/home" and It Return Like Data
I want to consume above URL in Business central [I used On prime BC].
Do you want to consume an external APIs directly from D365BC (so via AL code)?
If so, you have to use HttpClient class and send a GET request to your API. Then you need to parse the JSON response.
client.Get(FunctionURL + YourParameters, Response);
//Reads the response content from the Azure Function
if not jsonObj.ReadFrom(json) then
//Here you need to parse jsonObj (the JSON of your response)
Business Applications communities