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

Get value after decimal point

Hi! 

 

I'm working with versioning  and trying to trigger a flow when it's a major version. So I've got a calulated field that gives me the value which flow sees, but I want to check that the value after . is .0 and not .x. Is it possible to do that ?

1 REPLY 1
Community Support Team
Community Support Team

Re: Get value after decimal point

Hi @ Nichochicho,

 

Where is the value that you mentioned is saved in?

Could you please share more details about the value after decimal point?

Do you want to get the value after decimal point and check if the value is “0” or “x” ?

What would you do when the value after decimal point is “0” or “x”?

 

I have made a test on my side, and I would get the value from a sharepoint item  of a list, the sharepoint list as screenshot below:

1.png

The “versions” column is a “single line of text” type column.

 

I have created a flow as screenshot below:

2.png

The expression in the Compose as below:

first(skip(split(triggerBody()?['versions'],'.'),1))

 

The expression of Condition as below:

@equals(outputs('Compose'), '0')

 

When an item is created in the list, and the value of “versions” column is “version.0”, the flow would run successfully as below:

 3.png

When an item is created in the list, and the value of “versions” column is “version.x”, the flow would run successfully as below:

 4.png

 

 

Regards,
Alice Zhang

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

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!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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!

Top Kudoed Authors (Last 30 Days)
Users online (4,630)