Forum Discussion
Re: Microsoft Flow - Get executing user
3 Replies
- Anonymous
Hi Christopher - Hopefully this will save you the time!
Flow does run based upon the executing user rather than the person who produced the flow.
I found that my issue was due to a step earlier In the flow where the list item that triggered the flow is moved to a different location. By executing this step, I became the "Created by" user, which was my variable used to direct the flow through an approval.
I did feel silly when I worked it out!
Thanks for looking though- Anna DeKoningCopper Contributor
Hi Dave!
While this issue isn't identical to the one I am experiencing, it is the closest occurrence I have found so far. I am working on a document approval Flow that triggers when a file is created in a folder. The next step is Get My Profile (v2) in order to associate the document being reviewed with its author. This way, our manager can know for whom the document is being approved. So far, this flow always associates the user who originally created the flow with the document needing approval, rather than the user triggering the flow by placing a document in the specified folder.
Are there any workarounds for this?
Much appreciated!
- A
- DeTronCopper Contributor
For getting the person who caused the flow to run based on a ShPt list NewItem trigger, use the dynamic property "Created By Email" to determine who the creator of the document is. If you need to get that user's name, use their email as input for the Office 365 connector's "Get User Profile (v2)" function. See ScottShearer's answer with screenshots here: https://powerusers.microsoft.com/t5/Building-Flows/Get-executing-user-in-Flow/td-p/135386