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

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow 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 Flow Community Video Gallery!

Users Online
Currently online: 346 members 5,243 guests
Please welcome our newest community members: