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 Apps / Transpose HTML table R...
Power Apps
Unanswered

Transpose HTML table Rows & Columns and send the table as an email

(0) ShareShare
ReportReport
Posted on by 166

@v-xida-msft ,

Hi,

 

You have been my saviour 🙂 I built multiple apps and my team is using the same from last one year now...

I came across a requirement for my team.

I want to send the HTML table as an email from PowerApps. I got what I am looking for. However, I want to transpose Rows and Columns.  Attaching the code I used to get the HTML table. Request you to advise

HTML Table.jpg

HTML Table Email.png

 

Thanks

Sasidhar

HTML Table_Transpose.png

 

Categories:
I have the same question (0)
  • MatthewInwards Profile Picture
    138 on at

    Hi @sasidhar_mudra ,

    Could you be more specific as to how you would like to transpose the columns and rows.

    Thanks

    Matt 🙂

  • sasidhar_mudra Profile Picture
    166 on at

    @MatthewInwards @The 3rd screenshot is the reference. I want Employee ID, Employee Name and Manager Name in the first column and the second column should show the relevant information.

  • MatthewInwards Profile Picture
    138 on at

    So to be clear, this table will never have more than 1 records worth of data within it?

  • sasidhar_mudra Profile Picture
    166 on at

    @MatthewInwards ,

    Yes.  Below is what i am looking for.

    sasidhar_mudra_0-1612166561586.png

     

    Regards

    Sasidhar

  • Verified answer
    sasidhar_mudra Profile Picture
    166 on at

    @MatthewInwards ,

     

    I got it. I did minute changes in the code and i was able to get what i was looking for. Thank you 🙂

    "<h> Hi Team, </h>" &
    "<p>"&
    "Request you to process the below:" &
    "<p>" & 
    "<table width='100%' border='1' cellpadding='5' style='border:1px solid black; border-collapse:collapse'>" &
     "<tr style='text-align:left'>
     <th>Employee ID</th>" & 
     Concat(autoupdatefromexcel,
     "<td>" & 'Employee ID' & " </td>") &
     "</tr>" &
     "<tr style='text-align:left'>
     <th>Employee Name</th>" & 
     Concat(autoupdatefromexcel,
     "<td>" & 'Employee Name' & " </td>") &
     "</tr>" &
     "<tr style='text-align:left'>
     <th>Manager Name</th>" & 
     Concat(autoupdatefromexcel,
     "<td>" & 'Manager Name' & " </td>") &
     "</tr>" &
     "</Table>"

     

    sasidhar_mudra_0-1612192649396.png

     

    Regards

    Sasidhar

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard