Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Unanswered

MSAL authenticated flows in model driven app

(0) ShareShare
ReportReport
Posted on by 309

Hi,

 

We have created two buttons Approve/Reject that invoke a Power Automate flow. The flow is triggered by the HTTP request.

 

prathyoo_0-1713944192040.png

 

prathyoo_1-1713944370051.png

Currently, the URL being invoked is unauthenticated as shown below -

prathyoo_0-1713944510683.png

But we would like to switch the URL to "Any user in my tenant"

prathyoo_1-1713944579041.png

 

For this I understand that I need to use MSAL authentication. Would someone help me with the javascript change to be able to send the Microsoft Entra Id token while calling the flow.

Categories:
  • Damin Profile Picture
    63 on at
    Re: MSAL authenticated flows in model driven app

    I think you need to add MSAL for SPA, and in this case, the use of CDN for MSAL is imperative, for more details I suggest you to consult this Microsoft document for the configuration and the code needed to call the api. Plus it is not the best practice you can do, if you stay with the Oauth that is already available on power automate for the HTTP request trigger, that would much better.

  • Parvez Ghumra Profile Picture
    1,579 Super User 2025 Season 1 on at
    Re: MSAL authenticated flows in model driven app

    @prathyoo I see. I believe if you use the native Dataverse connector for Power Automate then all of the security etc is handled for you automatically.

  • psreek Profile Picture
    309 on at
    Re: MSAL authenticated flows in model driven app

    Thanks. This was a client requirement. But, my question was more to do with having a secure call to Power Automate. The Approve/Reject was just an example. If we can figure out how that can be achieved, then we could use it for other functionalities.

  • Parvez Ghumra Profile Picture
    1,579 Super User 2025 Season 1 on at
    Re: MSAL authenticated flows in model driven app

    Hi @prathyoo Is there any reason why you're not using the standard approvals functionality in Power Automate and the Dataverse connector?

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 Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 17

#2
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 9 Super User 2025 Season 1

Overall leaderboard

Featured topics