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 / Formatting Output for ...
Power Automate
Answered

Formatting Output for Teams from an HTML Table

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

He yall I am trying to output a table to teams, usually I can figure this out using mutliple web searches, but this one is alluding me.

 

I have a Flow that is filtering 3 parallel branches to pull items out of a SharePoint list -> joining them to one list -> outputting List to an HTML Table - Attempting to change the Style of the Table. "Trying" to convert the data into HTML -then outputting to Teams. When I first did this with outputting to email I had not issues with the Format. 

But Teams is still mashing the info together. 

1213_0-1685892728368.png

 

1213_1-1685892776547.png1213_2-1685892848754.png

 

What I want to do, is output the message to teams looking more like 

 

1213_0-1685898995138.png

Can someone please point out where I went wrong here.

 

 

Categories:
I have the same question (0)
  • Verified answer
    CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    @Anonymous

    Teams right now, does not support CSS styling see: https://techcommunity.microsoft.com/t5/teams-developer/styling-html-message-from-graph-in-teams/m-p/1065372

     

    You can add a border (see below),

     

    replace(body('Create_HTML_table'),'<table>','<table border="1">')

     

    CFernandes_0-1685903770475.png

     

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Its looking a lot better, any way to space out the Columns? 

    1213_0-1685904585184.png

     

  • Verified answer
    CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    Hey @Anonymous 

     

    Maybe try something like below -

     

    replace(body('Create_HTML_table'),'<table>','<table style="width:100%" border="1">')

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Huzzah! That did it, thank you!

  • CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    Hey @Anonymous 

     

    I am glad that my input helped 🙂 

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Tweaked it a little bit from 100% to 25%

    1213_0-1685905618226.png

     

  • CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    Nice work @Anonymous 

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 450

#2
Haque Profile Picture

Haque 366

#3
Valantis Profile Picture

Valantis 349

Last 30 days Overall leaderboard