cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dhiran
Level: Powered On

Formatting Numbers

Hi, I have a flow that looks at sharepoint list and sends an email with certain fields from the list. One of the columns is a number field with 2 decimal places but when an email the number shown is 6-7 digits long. Is there a way to limit the column to X decimal places?
1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Formatting Numbers

@Dhiran:

 

One way to do this is to use  a combination of expressions in your email.

Here is an example that produces 12.34:

substring('12.34567',0,add(indexOf('12.34567','.'),3))

 

Obviously, you would substitute a column reference where I have 12.34567

 

If this addresses your issue, please mark your post as solved.

 

Scott

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Formatting Numbers

Hi @Dhiran,

 

According to your description, I have created a Number column with 2 decimal places in the list, then create a flow to send an email with this column in the email body. However, the issue you mentioned that “the number shown is 6-7 digits long” could not be reproduced on my side.

1.PNG2.PNG

Could you share more detailed info to help reproduce this issue? 

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Dhiran
Level: Powered On

Re: Formatting Numbers

Hi Mabel,

 

Thank you for the response. 

 

I have a simple list with 2 columns, number and calculate. Both the fields have been set to 2 decimal places in the field settings. If I create a new item and in the number field I add the value of 2.8798432, SharePoint will set both the fields to 2.87

 

My flow basically sends me an email with both the numbers in the body and this is what I get

 

emailsent.png

So how do I get both numbers to send me the SharePoint recorded value?

Super User
Super User

Re: Formatting Numbers

@Dhiran:

 

One way to do this is to use  a combination of expressions in your email.

Here is an example that produces 12.34:

substring('12.34567',0,add(indexOf('12.34567','.'),3))

 

Obviously, you would substitute a column reference where I have 12.34567

 

If this addresses your issue, please mark your post as solved.

 

Scott

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users online (4,782)