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 / How to apply Format() ...
Power Automate
Answered

How to apply Format() function for a particular column of hmtl table to be sent by email

(1) ShareShare
ReportReport
Posted on by 2

My Flow is running successfully. It first makes a html table and compose by style code. it  sent it by email.

 

Only the changes i want to do is to apply the format on the "SvcExpense" column. For example amount column has

1230  - i want to show as 1230.00

1058.46 - i want to show as 1058.46

Also please find image of the output I am getting.

MIA27_0-1719894637807.png

 

I am aware that it can done by Format() function, but don't know how and where to apply.

 

Please guide what changes to do to my style/css code to achieve this requirement.

 

<style>
#table1 {
border: 1px solid #1C6EA4;
background-color: #EEEEEE;
width: 100%;
text-align: left;
font-family:calibri;
padding: 3px 2px;
border-collapse: collapse;
}
#table1 td, #table1 th {
border: 1px solid #AAAAAA;
padding: 3px 2px;
}
#table1 tbody td {
font-size: 13px;
}
#table1 thead {
background: #1C6EA4;
border-bottom: 2px solid #444444;
}
#table1 thead th {
font-size: 14px;
font-weight: bold;
color: #FFFFFF;
border-left: 2px solid #D0E4F5;
}
#table1 thead th:first-child {
border-left: none;
}
</style>

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @MIA27 

    If you want to modify the html table value in flow , you can use the "Custom" in "Create Html Table" action.

    vyueyunmsft_0-1719897188289.png

    formatNumber(item()?['SvcExpense'],'0.00')

     

    And for other column value is :
    item()?['FieldName']

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

     

  • Verified answer
    Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @MIA27 

     

    If you are using "Select" action the refer the below sample.

     

    Apply formatnumber function using an expression for the req column. Expression needs to be added in the expression box:

    ManishSolanki_0-1719897492349.png

    formatNumber(item()?['SvcExpense'],'#.00')

     

     

     

    Output:

    ManishSolanki_1-1719897584372.png

     

     

     

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard