cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Number format in HTML table to send in email

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...

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,

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

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.

View solution in original post

2 REPLIES 2
Community Support
Community Support

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.

View solution in original post

Helper I
Helper I

It solves my issue, thanks a lot.

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (31,498)