Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Call custom web site in the context of a Dynamics user

(0) ShareShare
ReportReport
Posted on by

I need to show some data from a custom web api on my dynamics forms. To generate the data, I'm using an Azure Function that renders JSON.

I would like to call this web api in a way that my web api knows what Dynamics user is requesting the data.

Unfortunately, the web is full of Dynamics related authentication questions that do focus on server-to-server-calls or web clients that want to request data from Dynamics, but in my case, I want to request my Azure function for data to be shown inside my Dynamics forms.

Is there a "simple" way to implement such a data access?

  • Nishkarsh Vaish Profile Picture
    335 on at
    RE: Call custom web site in the context of a Dynamics user

    Ok got it.

    To achieve this you need to implement single sign on to authenticate user for running azure function.

    I will check try it out and get back.

  • Community Member Profile Picture
    on at
    RE: Call custom web site in the context of a Dynamics user

    Hi,

    For example I'm opening a contact. On the form for contacts there is custom PCF control that requests a json from an azure function to show that information on the form. The data is located in an internal on-prem-database and the tables containing that data is relative huge (let's assume about 10 million rows with a lot of columns and some relations). The data connot be copied into the cloud, bust depending on some data of the contact, some specific rows (max 10) need to be rendered on the form. The user is not located inside the on-prem-network.

    My hope is, that there is an easy way to use the already logged in user session at AAD (when signing in to Dynamics, I already authenticate with my AAD credentials) to secure the azure function.

    Best regards

  • Nishkarsh Vaish Profile Picture
    335 on at
    RE: Call custom web site in the context of a Dynamics user

    Hi,

    I did something similar to this.

    I am passing the Incident details from CRM to call my azure function for processing of data. I passed the case id as a query string in http trigger azure function.

    Can you please elaborate me more about the architecture in a way that what component is calling first when you request data?

    Thanks

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,120 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,871 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans