cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate II
Advocate II

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 III
Super User III

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

10 REPLIES 10
Highlighted
Super User III
Super User III

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

Highlighted
Advocate II
Advocate II

Re: Get executing user in Flow

Thanks Scott for your help.

Highlighted
Frequent Visitor

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

Highlighted
Super User III
Super User III

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
Highlighted
Frequent Visitor

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

Highlighted
New Member

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.

Highlighted
New Member

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.

Highlighted
Frequent Visitor

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!

 

Highlighted
Advocate II
Advocate II

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.

Highlighted
New Member

Re: Get executing user in Flow

Has this been changed?  It wasn't working for me.  I did a Compose to see what UserEmail was returning and it looks like a guid 

 

 

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (5,480)