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 / Add Row to HTML Table ...
Power Automate
Answered

Add Row to HTML Table from Single SharePoint List Item

(0) ShareShare
ReportReport
Posted on by 5

Hi

I have a flow which is designed to look at a single item in a sharepoint and depending on the output of one column, I want to create an html table with the output from 5 different columns.  I can do this if my trigger is 'One', but the problem I am having is when the trigger=Two onwards (up to Five instances with different outcomes i.e. approved or declined).  My column names are exactly the same, all I want to do is add a row onto my table if the person has requested more than two and what those outcomes are (originally from an MS Form).  I couldn't figure out how to add a row so I went with creating two tables into one email (but it's messy). 

Any help would be greatly appreciated 🙂

The Compose I am using for that is:

<style>
table {
border: 1px solid #1C6EA4;
background-color: #EEEEEE;
width: 100%;
text-align: left;
border-collapse: collapse;
}
table td, table th {
border: 1px solid #AAAAAA;
padding: 3px 2px;
}
table tbody td {
font-size: 13px;
}
table thead {
background: #02A0E1;
border-bottom: 2px solid #444444;
}
table thead th {
font-size: 15px;
font-weight: bold;
color: #FFFFFF;
border-left: 2px solid #D0E4F5;
}
table thead th:first-child {
border-left: 2px solid #D0E4F5;
}
</style>
@{body('Create_HTML_table_2')}
<br>
ASSESSMENT 2
<br>
<style>
table {
border: 1px solid #1C6EA4;
background-color: #EEEEEE;
width: 100%;
text-align: left;
border-collapse: collapse;
}
table td, table th {
border: 1px solid #AAAAAA;
padding: 3px 2px;
}
table tbody td {
font-size: 13px;
}
table thead {
background: #02A0E1;
border-bottom: 2px solid #444444;
}
table thead th {
font-size: 15px;
font-weight: bold;
color: #FFFFFF;
border-left: 2px solid #D0E4F5;
}
table thead th:first-child {
border-left: 2px solid #D0E4F5;
}
</style>
@{body('Create_HTML_table_3')}

 

but I was hoping to be able to just add a row under the columns for each trigger instanceStep 1.JPGStep 2.JPGStep 3.JPGEmail Output.JPGEmail Output2.JPG:

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @lucy_01815 ,

     

    You could marge the results of Select2 and Select3 in to one array by using 'union', and then convert the array to be a HTML string. I've made a test for your reference:

    vbofengmsft_0-1663638985567.png

     

    Best Regards,

    Bof

     

     

  • lucy_01815 Profile Picture
    5 on at

    Hi @v-bofeng-msft 

    That works perfectly, thank you 😁

    Lucy

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 953

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 622

Last 30 days Overall leaderboard