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

Community site session details

Session Id : efszQ8STKtEKE6tbrif3eA
Power Automate - General Discussion
Answered

Adding Apply to Each Output to a Single Email

Like (0) ShareShare
ReportReport
Posted on 1 Feb 2022 17:47:47 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

 

 

  • Verified answer
    Pstork1 Profile Picture
    67,165 Most Valuable Professional on 01 Feb 2022 at 20:41:25
    Re: Adding Apply to Each Output to a Single Email

    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.

  • OnMyOwn Profile Picture
    7 on 01 Feb 2022 at 19:15:49
    Re: Adding Apply to Each Output to a Single Email

    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

     

  • Pstork1 Profile Picture
    67,165 Most Valuable Professional on 01 Feb 2022 at 19:14:40
    Re: Adding Apply to Each Output to a Single Email

    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 01 Feb 2022 at 18:46:13
    Re: Adding Apply to Each Output to a Single Email

    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
    67,165 Most Valuable Professional on 01 Feb 2022 at 18:09:01
    Re: Adding Apply to Each Output to a Single Email

    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.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete