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 :
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?

I have the same question (0)
  • Nishkarsh Vaish Profile Picture
    335 on at

    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

  • Community Member Profile Picture
    on at

    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

    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.

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
iampranjal Profile Picture

iampranjal 51

#2
Martin Dráb Profile Picture

Martin Dráb 39 Most Valuable Professional

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans