Announcements
Hi All,
I have a scenario where i am having an API that needs to be called from D365 F&O through x++ code. I tested it in postman and its working fine. Now i need to add X++ code to generate access token, then use this token to call API.
I am not sure how to achieve that. If someone can help me with sample code will be of great help.
goshoom - Could you please help on this
Thanks,
Dev
Hi goshoom ,
By API, yes i meant REST API. Also when i talk about token its using Client id and client secret from Azure. Find below screenshot of postman(removed client id and secret from screenshot).
Thanks,
Dev
API is extremely generic term - it covers any programming interface.
I guess that you're talking about a RESTful web services, therefore you'll need to send an HTTP request.
You also mentioned an access token, but that can also mean many things. Please tell us which authorization mechanism is used by your web service. For example, you may want to show us the steps that you did in Postman (that you're now trying to do from X++).
André Arnaud de Cal...
293,518
Super User 2025 Season 1
Martin Dráb
232,594
Most Valuable Professional
nmaenpaa
101,158
Moderator