Forum Discussion
Microsoft Flow - Get executing user
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
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