cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Variables when sending e-mail from Power Automate

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:   

 
 
 

Annotation 2020-04-26 211524.jpg

4 REPLIES 4
VictorIvanidze
Community Champion
Community Champion

Please show expanded "Send an email (V2)" action.

--------------------------------------------------------------------------------------
Contact me if you are interested in custom Power Automate development.

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: 

 

vc.PNG

 

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!

Anonymous
Not applicable

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. 

 

 

 
 

sshot_flow.png

Try to place in the To: field  the following:

 

@variables('email_addresses')

--------------------------------------------------------------------------------------
Contact me if you are interested in custom Power Automate development.

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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,377)