We’ve been using Power Automate extensively to automate operations in Dynamics 365 using the Dataverse connectors.
Also, working with connectors in Microsoft Dataverse, using a connection reference is generally a good practice. However, there’s an exception: if you want to perform a Dataverse operation in the context of the person who triggers the flow (the Invoker), then you should avoid using a connection reference instead use “Invoker’s Connection”.
Purpose of using “Invoker’s Connection” in Power Automate:
In the past, there was no way to run a Power Automate flow in the user’s context, but now you can do so specifically for Dataverse actions using the “Invoker’s Connection”. Please refer to the image below for a better understanding.
As seen in the image, we have used “Invoker’s connection” for the Dataverse action named “Create Contact”. Therefore, the system will create a contact using the “Invoker’s” user.
Advantages:
Disadvantages:
Previously, as the operation were performed by a global user, any permission issues were not encountered because the global user was having the required permissions of every entity but now if the operations gets executed on behalf of the logged-In User and by any chance if the user will not have the required permissions like create, updated or delete, then the flow run might fail.
© All Rights Reserved. Inkey IT Solutions Pvt. Ltd. 2024
Leave a Reply