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.
@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):
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!
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.
I'm currently trying to get this to run from BrowseGallery. Screenshot Attached.
How would I pass the Email Address to the To box of the Send email (v2) action?
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:
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!
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)
I was expecting to find Initializevariable5_value in the line.
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:
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!
WarrenBelz
146,596
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,928
Most Valuable Professional