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 / Create HTML table outs...
Power Automate
Answered

Create HTML table outside of apply to each

(0) ShareShare
ReportReport
Posted on by 340

Hi guys,

 

I have a flow that runs an HTTP GET request. The platform unfortunately has various devices split across regions. So I have to run an apply to each to get devices for each region. I have then created an array variable for each client ID and used that in the apply to each.

 

What I then need to do is create an HTML table outside the apply to each for each "apply to each" action and then put those in an email.

This is the flow:

da1ve_0-1676932006972.png

 

Inside the apply to each i can successfully create the HTML table, but i cant use that in my email outside the loop.

 

da1ve_1-1676932055755.png

 

So effectively, how would I get the "Select" output to use in the create HTML table outside of the apply to each action?

 

Thanks,
David

Categories:
  • v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @da1ve ,

     

    I have a test for your reference.
    You can save the content of each Select as a string in a string variable, append the string variable in each loop, and finally convert the string containing all the data into an array outside Apply to each.

    vdezhilimsft_1-1676961024510.png

     

    vdezhilimsft_0-1676960747183.png

    vdezhilimsft_2-1676961069111.png

    vdezhilimsft_3-1676961153579.png

    vdezhilimsft_4-1676961192231.png

     

    Best Regards,

    Dezhi

     

     

     

     

  • Verified answer
    da1ve Profile Picture
    340 on at

    @v-dezhili-msft ,

     

    Thanks for your reply. I actually managed to do this pretty simply in the end.

     

    Inside the apply to each:

     

    da1ve_1-1676962666371.png

     

    Then i just referenced the HTML table inside the apply to each

     

    da1ve_0-1676962635532.png

     

  • Claziel Profile Picture
    2 on at

    Hello,

    For me it worked like this:

    I firs set the from tab to value 

    Claziel_0-1704372354697.png

    Then i complete the columns how i want and after that i set the from tab to Body

    Claziel_1-1704372409555.png

    And it remains as it is.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard