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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

Store Access token and send it as a part of the API request to APIM

(0) ShareShare
ReportReport
Posted on by 680

Hi,

I would like to place APIM in front of our logic App which means that we will have to get an access token with credentials and then send it as a part API request to APIM. 

In Postman it works out-of-the-box (see screenshow below).

pastedimage1674205824511v1.png

How can we store it in D365 SCM and add it as a part of the API request to APIM? 

If the customization is required, please specify how the customization needs to be done (like stored it in Temp table etc)

Thank you. 

I have the same question (0)
  • Martin Dráb Profile Picture
    239,874 Most Valuable Professional on at

    Please start by explaining your scenario. Do I understand correctly that you want to call a logic app from F&O?

    Shouldn't you store a client secret in F&O database and use it to request a token? Or do you have another idea regarding authentication?

  • ShawnDEV Profile Picture
    680 on at

    Yes exactly,

    I will store credentials in D365 ofc.

    I am more into 'storing Access token' somewhere in D365 to be added as a header of JSOM string we send to Logic App (via APIM)

    what is the best approach to store the access token we get from O Auth 2 service?

    in Temp table or how?

    Thank you.

  • Martin Dráb Profile Picture
    239,874 Most Valuable Professional on at

    Your design isn't correct. The token has a short lifetime, therefore it would stop working very soon. You really need to request a token when needed.

  • ShawnDEV Profile Picture
    680 on at

    Hi,

    Can D365 technically request an access token from AAD based on the credentials which I am going to store in D365 table and add it the request header?

  • Martin Dráb Profile Picture
    239,874 Most Valuable Professional on at

    Yes. You can register an app in AAD, get an application and client secret used that for authentication (getting an token).

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

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

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 102 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 90

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans