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 / Number format in HTML ...
Power Automate
Unanswered

Number format in HTML table to send in email

(0) ShareShare
ReportReport
Posted on by 110

Hi everybody,

 

I create a flow that gets data from D365 Finance and Operations and send emails to managers.

Here is an email example:

 

2021-01-11_18-12-49.png

 

 

 

 

 

 

As you can see I send the Net amount could be easier to read if I format it as maybe: 218 174 €.

I saw and read the format options here: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings#code-try-2

I can use, for example: 

formatNumber(variables('myFloat), 'N', 'en-US')

The main issue is that the data I want to format (the line net amount) can't be added in the formatNumber function... but only the body or value of the PO lines details (from Finance and Operations).

I can customise the columns of the table as wanted, with the net amount... but without formatting it 😞

2021-01-11_19-18-51.png

Here is the email action, where I can only put the Outputs of my action 'Create HTML Table':

2021-01-11_19-22-10.png

 

 

Can anyone give me tips on how I can handle this format number?

 

Thanks,

 

 

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

    Hi @Frog64,

     

    You could use the expression item()?['columnName'] to get a specified column value of current item, for example:

    item()?['Net_Amount']

    Then if you want to convert the number to a monetary unit of the euro, the format specifier should be "C" or "c", and the symbol should be fr-FR:

    formatNumber(item()?['Net_Amount'], 'C', 'fr-FR')

    Screenshot 2021-01-12 144436.jpg

     

    Result:

    Screenshot 2021-01-12 145151.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • ConsultantIT Profile Picture
    110 on at

    It solves my issue, thanks a lot.

  • Pow3rUs3r Profile Picture
    2 on at

    I am still fairly new to power automate and learning daily. I am not sure how to apply this solution to my flow. I really need to get rid of these trailing zeros. Does the number of decimal places for the calculated columns in my list matter? If not, how do I apply your solution to my flow. Thanks in advance!

    SharePoint list calculated column settings:

    Pow3rUs3r_1-1651687339891.png

    Flow:

    Pow3rUs3r_2-1651687402753.png

     

     

    HTML table in Email:

    Pow3rUs3r_0-1651685551924.png

     

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard