web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : rHngOQFNoei9ajcjh5ldrP
Power Automate - Building Flows
Answered

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

Like (1) ShareShare
ReportReport
Posted on 2 Jul 2024 04:34:04 by

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>

 

 

 

 

I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    on 02 Jul 2024 at 05:14:05
    Re: How to apply Format() function for a particular column of hmtl table to be sent by email

    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,089 Super User 2025 Season 2 on 02 Jul 2024 at 05:20:00
    Re: How to apply Format() function for a particular column of hmtl table to be sent by email

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 655 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 371 Moderator

#3
chiaraalina Profile Picture

chiaraalina 276

Last 30 days Overall leaderboard