web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Adding Apply to Each O...
Power Automate
Answered

Adding Apply to Each Output to a Single Email

(0) ShareShare
ReportReport
Posted on by 7

 

Hello,

@Pstork1 -- How can I add the output of the apply to each to an email (one email only). 

Any help will be appreciated!!

 

OnMyOwn_0-1643737511338.png

 

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,456 Most Valuable Professional on at

    In general the process is to append the values processed in the Loop to an array or string variable and then use the variable when sending the email.

  • OnMyOwn Profile Picture
    7 on at

    Do you mean that I need to initialize a variable? If so, looking at my flow, where do you recommend I add the initialize variable and where do I add the append?

    OnMyOwn_0-1643739185237.png

     

  • Pstork1 Profile Picture
    69,456 Most Valuable Professional on at

    Yes, you'll need a variable to save the contents from the loop.  But some of the design depends on what you are trying to accomplish.  Are you pulling data that will all be put in one email?  or Pulling data that should generate multiple emails, but not one per record?

  • OnMyOwn Profile Picture
    7 on at

    I am trying to generate data to be sent to only email. This is what I have done so far...

    I initialized and appended the variable inside the apply to each. However, on the send email, I don't see any dynamic from the apply to each

     

    OnMyOwn_1-1643746270491.png

     

  • Verified answer
    Pstork1 Profile Picture
    69,456 Most Valuable Professional on at

    That's because the variable is an array.  To use that in an email you would need to convert the array into an HTML table after you exit the loop.  Then you can put that table in the email.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard