Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Sending File to Dynamic Email

(0) ShareShare
ReportReport
Posted on by

Hello Everyone,

 

I'm currently working on an app that is essentially a quality assurance form. On this form we collect the surveyee's email so they can receive a copy of the survey. 

 

Currently I have a flow to create the PDF and send it to myself. I would like to make the send to email dynamic. The email in the send to field should be the surveyee's email.


Please find attached a copy of my flow.


I believe I need to initiate and set a variable but I'm not 100% sure. Please help.

 

flow.PNG

  • Brad_Groux Profile Picture
    4,556 on at
    Re: Sending File to Dynamic Email

    @Anonymous wrote:

    How would I pass the Email Address to the To box of the Send email (v2) action?


    What is the name of the email textbox (I've highlighted it red): PowerAppEmailAddress.png

    That is the variable you want to pass in the To box, just like you pass it to SharePoint.

    Since you are passing it to a SharePoint list, you could also use a Get items action from the SharePoint connector and then use a Condition to dynamically add the email address. You could do a logical expession to match the Company Name from the app, to Company Name from your list.

    There is more than one way to accomplish what you are seeking to do. The key is finding the right data point to correlate the list item entries, to the PowerApps entry by the user. 

    If this reply has answered your question or solved your issue, please mark this question aas answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Community Power Platform Member Profile Picture
    on at
    Re: Sending File to Dynamic Email

    Hi Brad,

     

    My setup is a little different than the picture provided. The email is collected as part of the input/edit screen. Screenshot Attached. The information is then stored in SharePoint List when the form is submitted. The form is then Viewable from BrowseGallery, and I'm trying to send from BrowseGaller view.

    input.PNG

    I'm currently trying to get this to run from BrowseGallery.  Screenshot Attached.

    gallery-view.PNG

     

    How would I pass the Email Address to the To box of the Send email (v2) action?

  • Brad_Groux Profile Picture
    4,556 on at
    Re: Sending File to Dynamic Email

    Your limited screenshots of your Flow don't provide any insight into how you are either capturing or trying to access the email address. 

    Where is the user's email address entered? The PowerApp or the SharePoint List? Do you have an email address text entry box in your PowerApp like the the post I linked shows:

    14.JPG

    In your PowerApp, if you have a text entry boxed named Email Address, then that is the variable you'd pass to the To box of the Send email (V2) action - you don't need to initialize a new one.

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

     

  • Community Power Platform Member Profile Picture
    on at
    Re: Sending File to Dynamic Email

    How would I initiate the variable for the email. 

     

    I'm trying this now but I don't see how or where it will pull the email from PowerApps (connected to Sharepoint List)var_email.PNG

     

    I was expecting to find Initializevariable5_value in the line. 

    onselect-missingemailvar.PNG

  • Brad_Groux Profile Picture
    4,556 on at
    Re: Sending File to Dynamic Email

    You would just use the Send email V2 action, and in the To box you'd pass through the variable/parameter that contains the email address of your submitting user. So just like you initialized a variable for the file name, you'd do so for the email address of the user. 

    It looks like you are using a PowerApp, so you'd pass through the email variable from the PowerApp to Flow. YOu could also use the Ask in PowerApps feature. This answer from a previous question by @v-xida-msft explains how to pass an email variable from PowerApps to Flow:

    12.JPG

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,596 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow