web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

Access token request for finance and operations

(0) ShareShare
ReportReport
Posted on by

Dear all,

My dev team started working on an integration which is based on a JSON custom service for D365FO. But this is besides the point. Before we start the development we would like to see if we can authenticate the external system on Azure AD. We registered the app and now posses the client ID, the client secret, the tenant ID. We are not sure about the scope should it be the environment URL only?

Also can you share an example json request for an API token from Azure AD. Something that is already known to be working. 

Thanks in advance.

BR,

Simeon

I have the same question (0)
  • D365 Developer Profile Picture
    215 on at

    Hi Simeon, 

    Just a quick question - is your communication with the service 2 way I mean do you send data to the service and receive data from it?

    And answer  to your question- You have to register your application Client ID in Azure active directory applications in F&O so you can access it from there. One AAD application is sufficient for all environments. 

    You can use C# coding to create JSON token request and call C# code from X++.

  • Suggested answer
    Martin Dráb Profile Picture
    237,896 Most Valuable Professional on at

    Microsoft published examples that you can use - look at microsoft/Dynamics-AX-Integration on GitHub.

    Put authentication details to ClientConfiguration class and then run JsonConsoleApplication.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 284 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 178 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 116 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans