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 / Change orientation of ...
Power Automate
Unanswered

Change orientation of HTML table

(0) ShareShare
ReportReport
Posted on by 4

Is it possible to chnage the orientation of the HTMl table so that its horizontal and not vertical?

 

Example:

(Currently)

 

What I want:

(terrible paint mock-up)

Thanks!

 

Categories:
I have the same question (0)
  • LeeHarris Profile Picture
    1,026 on at

    Hi @VMartin

     

    Is this custom HTML that is being displayed? If so, please share your HTML here.

  • VMartin Profile Picture
    4 on at
    replace(body('Create_HTML_table'),'<table>','<table border="1">')
     
    5wmbt1
  • LeeHarris Profile Picture
    1,026 on at

    Hi @VMartin

     

    I don't think this is possible using the Create HTML Table action. You would need to look at crafting your own HTML, inserting values in the appropriate places as its constructed. This can be achieved by looping through each response and using array variables to hold each row as HTML before pulling them all together in a single action. This could get complicated quite quickly depending on the size of your table. I often find its easiest to create the working HTML outside of Flow in an editor and then break it down into sections so that it fits within the Flow process.

     

    It may be worth raising the change to the Create HTML Table action, to allow the headers to appear in the first column, on the ideas forum.

  • Verified answer
    v-yuazh-msft Profile Picture
    on at

    Hi @VMartin,

     

    As @LeeHarris said, the function to change orientation of HTML table is not supported in microsoft flow currently.

     

    I afraid that there is no any way to achieve your needs within microsoft flow currently.

    If you would like the function to be supported in microsoft flow, you could submit an idea to flow idea forum:

    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

     

    Best regards,

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • thetruckpeople Profile Picture
    4 on at

    why is this marked as the solution? there is no solution provided and this is ranking number one, very disappointing

  • thetruckpeople Profile Picture
    4 on at

    Someone was able to provide the actual answer in a different thread, of course this is possible, you are simply pivoting the table. Please stop saying it is not possible and then marking the answer as right if you are not sure. You need to just map the array and re-compose it.

     

    Please mark this as the solution so it will be updated.

     

    Solved: html table format columns as rows - Power Platform Community (microsoft.com)

  • Sohan Profile Picture
    154 on at

    Hi,

    <style>table {
     width: 100%;
     text-align: left;
     border-collapse: collapse;
     display: flex;
     align-items: left;
     justify-content: left;
    }
    
    tbody {
     display: flex;
     flex-direction: row;
    }
    
    tr {
     display: flex;
     flex-direction: column;
     
     height: auto;
    }
    
    table td,
    table th {
     border: 2.5px solid #AAAAAA;
     padding: 6px 6px;
     height: auto;
    }
    
    table tbody td {
     font-size: 12px;
    }
    
    table thead {
     background: #78787b;
     width: 25%;
     height: auto;
    }
    
    table thead th {
     font-size: 12px;
     font-weight: bold;
     color: #FFFFFF;
     border-left: 2.5px solid #aaaaaa;
    
    }
    
    table thead th:first-child {
     border-left: none;
    }
    
    </style>

     

    I hope this helps! Let me know if you have any further questions. If this solves your question, please accept it as a solution & give it a thumbs up to help other community members find it more.

    Thanks!

  • beargal34 Profile Picture
    61 on at

    Your code helped me immensely. I tweaked mine slightly by adding border: none; in the table style at the top and then come of the background colors. Thank you SO much!

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard