Skip to main content
Community site session details

Community site session details

Session Id : GZaL112fXBJJAxD8FxoLwC
Power Automate - General Discussion
Answered

Including wide tables in approval mail

Like (0) ShareShare
ReportReport
Posted on 27 Apr 2021 06:31:18 by 38

Hi experts!

 

I managed to get additional approval-related information into the approval email sent from my flow. The problem I have is that the table is very wide. That in combination with the approval mail having fixed width causes the information in the table to look like this:

 

monstrator_0-1619504873028.png

 When I forward the email the fixed width is getting removed and the table looks OK:

 

monstrator_1-1619504940122.png

Also in MS Teams the table looks good:

 

monstrator_2-1619504987877.png

 

Any idea how to change the approval mail available width?

 

Thanks and have a nice day everyone!

 

Regards, Denis

  • jinivthakkar Profile Picture
    4,181 on 26 Feb 2024 at 14:30:26
    Re: Including wide tables in approval mail

    ‎‎‎‎This can be solved using   and worked for me today in email and teams notification:

     

    Please find my working markdown code:

     

    | Action ‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎         | Description |
    |--------------------------|:-----------|
    | **Migrate**‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎          â€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Žâ€Ž| Some text here  |
    | **Remove**          â€Ž| Some text here |
    | **Reject**‎         | Some text here |
    | **Reassign**‎      | Some text here |

  • Verified answer
    monstrator Profile Picture
    38 on 05 May 2021 at 13:00:03
    Re: Including wide tables in approval mail

    I figured out a way of solving this by using 'Send email with Options'. Simply add options 'Approve' and 'reject' and evaluate the answer afterwards. This of course only works via mail and cannot be used inside Teams or in Dataverse when the user is logged in. But still, it solved the issue for me 🙂

     

    monstrator_0-1620219593913.png

     

    BR, Denis

  • monstrator Profile Picture
    38 on 28 Apr 2021 at 08:30:43
    Re: Including wide tables in approval mail

    @jinivthakkar Yes, I think that's how it his. Thanks for checking! I will create an SR to see if anything could be done.

     

    BR, Denis

  • jinivthakkar Profile Picture
    4,181 on 28 Apr 2021 at 08:06:26
    Re: Including wide tables in approval mail

    @monstrator I tried below different combinations of html and css but nothing seems to be working, so I conclude that it can't be done. There is nothing on the official documentation here - https://docs.microsoft.com/en-us/power-automate/approvals-markdown-support#tables

     

    <div class="foo">
    
    Header | header
    ------ | -----
    Bar | bar
    
    </div>
    <style>
    
    
    .foo table {
    border-collapse: collapse;
     border: 1px solid black;
    }
    </style>
    | <div style="width:290px">property</div> | description |
    | --------------------------------------- | ------------------------------------- |
    | `border-bottom-right-radius` | Defines the shape of the bottom-right |
    <style>
    table th:first-of-type {
     width: 10%;
    }
    table th:nth-of-type(2) {
     width: 10%;
    }
    table th:nth-of-type(3) {
     width: 50%;
    }
    table th:nth-of-type(4) {
     width: 30%;
    }
    </style>
    
    
    +---------+---------+---------+----------+
    | Header1 | header2 | header3 | header4 |
    +---------+---------+---------+----------+
    | Bar | bar | bar | bar |
    +---------+---------+---------+----------+

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • monstrator Profile Picture
    38 on 28 Apr 2021 at 07:48:21
    Re: Including wide tables in approval mail

    Hi @jinivthakkar ,

     

    thanks for your post but this is not my problem. I am using the "start and wait for approval" step for which you cannot use HTML in the body:

     

    monstrator_0-1619596060746.png

     

    You can only use markdown language and the frame for the approval mail body seems to be fixed width.

     

    BR, Denis

  • jinivthakkar Profile Picture
    4,181 on 28 Apr 2021 at 06:37:20
    Re: Including wide tables in approval mail

    @monstrator click on code view on email action 

     

    jinivthakkar_0-1619591577970.png

    and then paste the html 

    jinivthakkar_1-1619591649452.png

    I tried this html : https://www.w3schools.com/cssref/tryit.asp?filename=trycss_table_table-layout

     

    it has 4 table designs, I think you will be interested in below highlighted designs:

    jinivthakkar_2-1619591789666.png

    Basically you will have to include css and html to get the desired output.

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

     

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete