cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
neeraj_bharati
Level: Powered On

Get executing user in Flow

 

I need to send email to the user who executed the flow on a selected item in document library. I am using "Get my profile (V2)" but somehow it's picking the user who published the flow.

 

Any help is greatly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Get executing user in Flow

You need to use the "Get user profile (V2)" action and not "Get my profile (V2)".

Use the User email available to you in Dynamic properties for the "User(UPN)".

 

 

Button1.jpg

 

If this addresses your issue, please mark your post as Solved.

 

Scott

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

9 REPLIES 9
Highlighted
Super User
Super User

Re: Get executing user in Flow

You need to use the "Get user profile (V2)" action and not "Get my profile (V2)".

Use the User email available to you in Dynamic properties for the "User(UPN)".

 

 

Button1.jpg

 

If this addresses your issue, please mark your post as Solved.

 

Scott

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

neeraj_bharati
Level: Powered On

Re: Get executing user in Flow

Thanks Scott for your help.

comecome
Level: Powered On

Re: Get executing user in Flow

Hi

 

Thank you very much from   Madrid.

 

I am dealing with Microsft Forms. Could I get with  a  flow & “Get user profile”  the display name of the user who responded the survey?

 

Thank you very much in advance for any suggestion

 

Javier

Super User
Super User

Re: Get executing user in Flow

Yes - the user who submitted the form is available to you and you can use that info with get user profile to retrieve the display name. Post here if you need an example.

Scott
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
comecome
Level: Powered On

Re: Get executing user in Flow

Thank you very much Scott!

 

Indeed I would strongly appreciate an example or jusr to list the steps I must follow. I am reading & reading but I cannot guess how to accomplish it. 

I found others who parse JSON files... I don't believe it would be so complicated

 

Yours

Javier

SpyD
Level: Power Up

Re: Get executing user in Flow

Please post an example.  I'm still stuggling to get it to find/use the the person who filled out the form.

SpyD
Level: Power Up

Re: Get executing user in Flow

Just an update on my flow, I was able to have it find/use the email address of the person who filled out the form but I still can't make it use their name instead.  Not a big deal - just a minor annoyance.

comecome
Level: Powered On

Re: Get executing user in Flow

I tried the flow succesfully.... what I am not able to send is the photo. I recovered it... I create good HTML code... I convert the photo to base64, but at the end Outlook cannot show the photo!

 

grahampasmurf
Level: Powered On

Re: Get executing user in Flow

I want to do something similar (get the user who executed the flow by pressing a button in PowerApps) but I do not see those options available.

 

I do not see any "For a selected item" type action and none of the actions I try have the dynamic content of "User email - The email address of the user who triggered the flow."

 

I do not see any way to get the executing user, except to pass it in as a variable from PowerApps, which I am hestitant to do because sometimes that breaks the link and I have to do a workaround to recreate it.

 

The problem I want to solve is that 2 different users could press the PowerApps button and trigger the flow and I want to keep track of the user who launched and compare with the previous user who updated the record so that I can prevent User 2 from overwriting what User 1 did.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,994)