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

Announcements

No record found.

News and Announcements icon
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
    238,743 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 1,093

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 193 Super User 2026 Season 1

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 134 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans