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

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
    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
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 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

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

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard