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 / Transpose a HTML Table
Power Automate
Answered

Transpose a HTML Table

(0) ShareShare
ReportReport
Posted on by 47

Hello all,

 

I have some flows for site inspections that work well. They are triggered by a user submitting a Microsoft Form. They update a SP list and alert a manager depending on the findings. The emails could be formatted a little better, I would like to transpose the HTML table to make it easier to read. I have no idea where to start with this. Can you offer any suggestions?

 

Here's what the flow looks like currently:

2022-10-20 14_17_59-Edit your flow _ Power Automate and 10 more pages - Work - Microsoft​ Edge.png

 

This is the body of the email:

2022-10-20 14_19_14-2 - Complaince - ben@chemisys.com.au - Outlook.png

This is how I would like to format the table:

2022-10-20 14_21_15-Book1 - Excel.png

 

Thanks in advance.

 

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at
  • Bokaboi Profile Picture
    47 on at

    Hello Sudeep,

    Thanks for reaching out. I've had a brief read; although I may be able to adapt it, on the surface it would seem the tutorial you've shared is to group items under a heading which were originally stored in the first column of a table. I'm hoping to rotate my table 90degrees.

     

    Here is my whole flow:

    2022-10-20 15_51_37-Edit your flow _ Power Automate and 2 more pages - Work - Microsoft​ Edge.png2022-10-20 15_52_01-Edit your flow _ Power Automate and 2 more pages - Work - Microsoft​ Edge.png2022-10-20 15_52_23-Edit your flow _ Power Automate and 2 more pages - Work - Microsoft​ Edge.png

     

  • v-chengfen-msft Profile Picture
    on at

    Hi @Bokaboi ,

    Please try to put an HTML Table in an email as a string

    Here is a test for your reference:

    vchengfenmsft_0-1666246887814.png

    vchengfenmsft_1-1666246887817.png

    <table width="20%" border="1" cellspacing="0" cellpadding="4" align="Left" bordercolor="#cccccc">
    <tr>
    <td bgcolor="#4169E1"><font color="#FFFFFF">Area</font></td>
    <td bgcolor="#4169E1" ><font color="#FFFFFF">Findings</font></td>
    </tr>
    <tr>
    <td>Bolts and Tabs</td>
    <td>@{outputs('Get_response_details')?['body/Bolts and Tabs']}</td>
    </tr>
    <tr>
    <td>Sealant</td>
    <td>@{outputs('Get_response_details')?['body/Sealant']}</td>
    </tr>
    <tr>
    <td>Perimeter</td>
    <td>@{outputs('Get_response_details')?['body/Perimeter']}</td>
    </tr>
    </table>

    Here is result:

    vchengfenmsft_2-1666246887818.png

     

    Best Regards

    Cheng Feng

  • Bokaboi Profile Picture
    47 on at

    Hi Cheng Feng,

    Thank you for this suggestion. It's 99% of the way there. The table formats nicely, exactly how I would like it to look, however, the next line of text seems to be stuck to the side of the table.

     

    2022-10-21 09_33_34-Edit your flow _ Power Automate and 5 more pages - Work - Microsoft​ Edge.png

     

    2022-10-21 09_09_01-Inbox - ben@chemisys.com.au - Outlook.png 

  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Excellent suggestion @v-chengfen-msft !

     

    @Bokaboi , you could just add some <br/> after your </table>

    or format the HTML using Divs

     

  • Bokaboi Profile Picture
    47 on at

    We got there in the end,

    I had to use quite a few <br> tags to push the text down past the table. I am happy with how it is formatted now.

     

    2022-10-24 09_54_12-Inbox - ben@chemisys.com.au - Outlook.png2022-10-24 09_54_24-Edit your flow _ Power Automate and 2 more pages - Work - Microsoft​ Edge.png

  • Juppu Profile Picture
    51 on at

    Great solution! helped me alot !
    for anyone using a apply to each, with Concurrency Control, you can use a compose instread of a variable
    or rememer to "Empty" the variable in the end.
    my emails ended up having like 10 tables in them 😅

  • Chriddle Profile Picture
    8,441 Super User 2025 Season 2 on at

    Back to the original question:
    Here is a suggestion on how to “rotate” an HTML table

    https://powerusers.microsoft.com/t5/Building-Flows/Compose-HTML-Table-with-02-columns-only-Column-1-Header-list/m-p/2634060#M295356

     

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard