Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Suggested answer

Access token request for finance and operations

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,414 Most Valuable Professional on at
    RE: Access token request for finance and operations

    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.

  • D365 Developer Profile Picture
    D365 Developer 215 on at
    RE: Access token request for finance and operations

    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++.

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,684 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,414 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans