cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PeKi72
Helper III
Helper III

How to get my own email address in my own flow

Dear experts,

 

How can i get my own email address in my own flow?

 

PeKi72_0-1652639122078.png

Gr .P 

1 ACCEPTED SOLUTION

Accepted Solutions
Heartholme
Continued Contributor
Continued Contributor

Yes, like this:

 

Heartholme_0-1652644710752.png

 

If you are satisfied with the result, please Accept my post as a solution. This will in turn help other find solutions to similar questions.

Best Regards
Heartholme

View solution in original post

9 REPLIES 9
Heartholme
Continued Contributor
Continued Contributor

Hi @PeKi72,

 

1. If you remove the { } from the compose and put in this for the expression, it will take the email of the user who triggered the flow. So just the below code in the compose as an experssion:

triggerOutputs()?['headers/x-ms-user-email']

 

2. Remove the { } and just paste in your email and refrence it by dynamic content in the next step like this:

Heartholme_0-1652642228037.png

 

{ If my post answered your question, please Accept it as a solution ✔ }
{ This will in turn help others find solutions to similar questions }

Best Regards
Heartholme

PeKi72
Helper III
Helper III

Hi i do not know if i did it right but i get an error

 

PeKi72_0-1652642727527.png

the error: User lookup request to Graph failed lookup for user identifier: ''.

 

Gr. P

Heartholme
Continued Contributor
Continued Contributor

Hi again,

 

Please remove this and try again:

Heartholme_0-1652643804557.png

 

PeKi72
Helper III
Helper III

Still not work, error : "The request content was invalid and could not be deserialized: 'Required property 'to' expects a value but got null. Path 'recipient', line 1, position 4157.'."

PeKi72
Helper III
Helper III

Still not work, error : "The request content was invalid and could not be deserialized: 'Required property 'to' expects a value but got null. Path 'recipient', line 1, position 4157.'."

Heartholme
Continued Contributor
Continued Contributor

Apologies @PeKi72 ,

 

Didn't see that you were using recurrance as a trigger, which dosen't work with triggeroutputs() unfortuneately. Most other triggers do, as they are triggered by a user.

 

I think you'll have to go with option 2 and put the email in a compose and then refrence it in the next action via. dynamic content.

 

Let me know if you have any further questions 😊

PeKi72
Helper III
Helper III

What about the Get my profile V2 connector. Is it possible to get my own email address with this connector?

Heartholme
Continued Contributor
Continued Contributor

Yes, like this:

 

Heartholme_0-1652644710752.png

 

If you are satisfied with the result, please Accept my post as a solution. This will in turn help other find solutions to similar questions.

Best Regards
Heartholme

PeKi72
Helper III
Helper III

it works 🙂

 

PeKi72_0-1652644930339.png

gr. P

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (2,459)