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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Apply to Each - Select...
Power Automate
Unanswered

Apply to Each - Select, Create HTML Table, Compose Help

(0) ShareShare
ReportReport
Posted on by 117

So I have a SharePoint List that has a column with ID's to a sub list.

 

That column contains ID's to the items.

 

I am trying to get each of those items from the sub list, select specific columns, and create an html table. To then send an email.

 

I got everything working but I am wondering if I am doing this right and if its possible for me to get the multiple table names removed somehow. 

 

Here is the entire flow and the email. As you can see the method I am using creates two tables on top of each other instead of 1 single table. I thought about using replace function to remove some of the HTML but that would also replace the first part since its the exact same.

 

1.png

2.png

3.png

4.png

 

This is how the email arrives:

5.png

 

I want it to look like this instead: (if possible)

6.png

Categories:
I have the same question (0)
  • WC-KSTILL Profile Picture
    117 on at

    I was up all night thinking of a way to achieve this... going to test a few more things. If anybody has any idea's please let me know

  • Verified answer
    WC-KSTILL Profile Picture
    117 on at

    I ended up finding a way.

     

    In select I changed the column names to A B C D E.

     

    Then I created two variables.

     

    Used replace function to replace 

    </table><table><thead><tr><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th></tr></thead><tbody>

    from The Compose

     

     

    Then used replace to remove 

    <table><thead><tr><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th></tr></thead><tbody>

    from the First Variable

     

     

    7.png

    8.png

  • askondo Profile Picture
    on at

    @WC-KSTILL Thanks for the feedback on the solution.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard