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 / Need help with formatt...
Power Automate
Answered

Need help with formatting output

(0) ShareShare
ReportReport
Posted on by 221

Would anyone have any advice on how to create the following formatted output?  Thank you in advance!

 

I need to have the areas in the highlighted orange, added to the output:

 

Shaguar357_0-1683231514155.png

 

This is what I currently have as output:

Shaguar357_6-1683232021058.png

 

 

This is the current flow:

Shaguar357_2-1683231826143.png

Shaguar357_3-1683231840774.png

Shaguar357_4-1683231863148.png

Shaguar357_5-1683231889047.png

 

 

<style>
table {
border-collapse: collapse;
background-color: #EEEEEE;
}
table td {
border: 2px solid #ddd;
padding: 6px 20px;
text-align: left;
font-weight: bold;
}
table th {
display: none;
}
table td:first-child {
}
</style>

 

Categories:
I have the same question (0)
  • AdrianTorres Profile Picture
    43 on at

    Hi,

     

    I see you’re creating a HTML Table based on the JSON in the Compose action before. However, you can create your table directly in the compose action so it will include the highlighted rows, example:

    <table>
    <tr>
    <td colspan=“2”>First Planned Installation</td>
    </tr>
    <tr>

    <td>Planned Install Date</td>
    <td>YourDateExpressionHere</td>

    </tr>
    </table>

     

    With this, you will no longer need the “Create HTML table” step. Instead, just place the Compose Output into the body of your email, after the <style> Compose output. I hope this helps! 🙂

  • Shaguar357 Profile Picture
    221 on at

    Hi @AdrianTorres ,

     

    I appreciate you helping me out!  I've started rebuilding the Compose action as suggested.  


    Would you know how to get the "First Planned Installation" centered and highlighted in the table?

     

    Shaguar357_0-1683291153562.png

    Thanks again!

     

  • AdrianTorres Profile Picture
    43 on at

    Hi @Shaguar357,

    Yes, you can format these rows by giving them some CSS Styling, as you’ve already done in your <style> compose.

    To achieve the style from your initial image, add this block to your style:

    .highlight {
    text-align: center !important;

    background-color: #fabd43;

    color: #000000;
    }

     

    You can then apply this style to any row in your table by assigning it the class as follows:

    <table>
    <tr>
    <td colspan=“2” class=”highlight“>First Planned Installation</td>
    </tr>
    <tr>

    <td>Planned Install Date</td>
    <td>YourDateExpressionHere</td>

    </tr>
    </table>

  • Shaguar357 Profile Picture
    221 on at

    Hi @AdrianTorres ,

     

    We're getting closer!  Can you tell me how I'd stretch the "First...Second Planned Installation" cells over the second column?  Hope that makes sense! 

    Shaguar357_4-1683313746725.png

     

    Shaguar357_0-1683313204133.png

    Shaguar357_1-1683313251394.png

     

  • Verified answer
    AdrianTorres Profile Picture
    43 on at

    Hi @Shaguar357,

    This should have worked with the colspan attribute we placed in the <td>, however just to be sure let’s do the following:

     

    • Remove the table th block from your <style> as it’s not being used
    • Remove the table td:first-child block as it’s also unused
    • Check that all your tr tags are properly closed, I noticed from your last image that the last ones are missing a slash. There is also an extra <tr> at the end of your </table> which may be causing this issue.

    If you’re still having issues after applying these changes, try changing the highlighted rows from <td> to <th>. I hope this helps 🙂

  • Shaguar357 Profile Picture
    221 on at

    Hi @AdrianTorres ,

     

    Here's the current output.  Very close.  Somewhere I lost the border around the headers and I'd still like to have the headers highlighted.  Any ideas?  Thanks again!  😊

     

    Shaguar357_3-1683493402070.png

     

     

    Shaguar357_0-1683493302066.png

    Shaguar357_1-1683493330879.png

    Shaguar357_2-1683493362942.png

     

  • Shaguar357 Profile Picture
    221 on at

    Hi @AdrianTorres ,

     

    I believe I have it down.  The only thing I'm missing now is the border around each header.  I'll keep working at that.  Thanks for all your help!  I really appreciate it! 🙂

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 May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 419

#2
Vish WR Profile Picture

Vish WR 314

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard