What is the Int function?
We use INT FUNCTION’ in power to automate to CONVERT string values into integers and perform different functions.
Description:
In this guide, we will discuss how to use the INT function in power automation. Let’s create a new flow. To create a new flow follow the following instructions:
Go to power Power Apps:
Navigate to Flows:Click on the ‘New Flow’ button:After clicking new flow select ‘Instant Cloud flow’ form the dropdown:
Finally set its name and select ‘manually’ as flow trigger point:
In the below screenshot we set the Name of flow and its trigger point which is ‘Manually trigger a flow. Finally, click on the create button to create a new flow.
First of all, initialize a variable:
Initialize a variable using initialize variable action in power automate
Then set its attributes like Name, Type, and value
Secondly, add a Compose action to convert a string value into an integer:
In this compose action we call the Age variable in it to convert it into a string
Click the Save and select the test button to Run the flow and test it whether it fulfills your requirement or not.
Output:
Here we get string type value into an integer
Now add some arithmetic operations in the flow:
Add 5 years to your age
Code:
add(outputs('Convert_String_Into_Integer'), 5)
input:
0 Comments
Thanks for commenting. Your comment will be live soon after approval.