Hi,
We have created two buttons Approve/Reject that invoke a Power Automate flow. The flow is triggered by the HTTP request.
Currently, the URL being invoked is unauthenticated as shown below -
But we would like to switch the URL to "Any user in my tenant"
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.
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.
@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.
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.
Hi @prathyoo Is there any reason why you're not using the standard approvals functionality in Power Automate and the Dataverse connector?
stampcoin
17
ankit_singhal
11
Super User 2025 Season 1
mmbr1606
9
Super User 2025 Season 1