Power Automate Functions - INT Function

Power Automate Functions - INT Function

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:

Power Automate Functions - INT Function

Navigate to Flows:
Power Automate Functions - INT Function
Click on the ‘New Flow’ button:
Power Automate Functions - INT Function
After clicking new flow select ‘Instant Cloud flow’ form the dropdown:
Power Automate Functions - INT Function
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. 
Power Automate Functions - INT Function
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
Power Automate Functions - INT Function

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

Power Automate Functions - INT Function

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
Power Automate Functions - INT Function

Now add some arithmetic operations in the flow:
Add 5 years to your age 
Code:
add(outputs('Convert_String_Into_Integer'), 5)
input:
Power Automate Functions - INT Function

Output:
Power Automate Functions - INT Function

0 Comments

Thanks for commenting. Your comment will be live soon after approval.