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 Apps
Answered

Tables help

(0) ShareShare
ReportReport
Posted on by 98

Hello,

 

I'm using the code below which is working fine but I would like to add a header to separate the two collections but so far I have only been able to add this for the first collection. When I add a header for the second it's populated in the last row of the last column. 

 

I know this is something pretty straight forward and have tried different combination but am now throwing in the towel. Any help would be much appreciated. 

 

Office365Outlook.SendEmailV2("email","Stock", 
"<table width='100%' border='1' cellpadding='5' style='border:1px solid black; border-collapse:collapse'>" &
 "<tr style='background-color:#efefef'>
 <th>Description</th>
 <th>Device</th>
 <th>Current Level</th>
 </tr>" & 
Concat(colTonerStock,
 
 "<tr>
 <td>" & Title & " </td>
 <td>" & Device & " </td>
 <td>" & CurrentLevel & " </td>
 </tr>")& 
"<table width='100%' border='1' cellpadding='5' style='border:1px solid black; border-collapse:collapse'>" &
 "<tr style='background-color:#efefef'>
 <th>Description</th>
 <th>Device</th>
 <th>Current Level</th>
 </tr>" & 
Concat(colWasteStock,
 
 "<tr>
 <td>" & Title & " </td>
 <td>" & Device & " </td>
 <td>" & CurrentLevel & " </td>
 </tr>"))

 

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

    I don't believe an HTML table can have two headers.  You could add the header as an additional row between the two collections or split the HTML into two tables with two headers, one for each collection.  Your code below will work, you just need to add a '</Table>' to close off the first table before you start the second one.

  • dandandsan Profile Picture
    98 on at

    @Pstork1 

     

    It's as simple as that, thank you!

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 Apps

#1
Vish WR Profile Picture

Vish WR 993

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 545

Last 30 days Overall leaderboard