How can I insert variables for e-mail addresses into a flow? I want to use a text string for the addresses, but would prefer to have them in a variable. (There actually will be several e-mails sent to the same recipients and I want to avoid needing a whole new set of e-mail actions for each set of recipients. Is 'Initialize variable' correct? Do I need a 'compose' step, or a 'set variable' or something?
I have this, but it doesn't work:
Please show expanded "Send an email (V2)" action.
Hi @Anonymous
You can add variable text as ling as it is a string and emails are separated by ';' Click on the arrow as shown below to switch to select dynamic content:
Hope this Helps!
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!
Thanks!
In this display, I'm trying to show that I want to use the variable, "email_addresses", in the 'Send and email (V2) 5 'To' field.
However, this is not available to me in dynamic content, where I only see "email_request", which is a different field that I'd used elsewhere.
The value of email_addresses will be used to send e-mails to bob@gmail.com and mary@aol.com this time. But if I get the variable concept to work, I'll be inserting a condition so at other times I'll only be sending the mail to only Bob, and not Mary.
Try to place in the To: field the following:
@variables('email_addresses')
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
46 | |
17 | |
16 | |
13 | |
13 |
User | Count |
---|---|
78 | |
40 | |
27 | |
22 | |
19 |