Power Automate Functions - TAKE Function

Power Automate Functions - TAKE Function

TAKE Function

What is the TAKE function?

TAKE function is used to get values from the array (collection) or string. In the SKIP function, we skip the values but in TAKE function we get or take the value remaining procedure is the same.


In this guide, we will discuss how to use the float function in power automation. Let us create a new flow. To create a new flow follow the following instructions:

Go to power Apps:

Power Automate Functions - TAKE Function

Navigate to Flows:
Power Automate Functions - TAKE Function

Click on the ‘New Flow’ button:
Power Automate Functions - TAKE Function

After clicking new flow, select ‘Instant Cloud flow’ form the dropdown:
Power Automate Functions - TAKE 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 - TAKE Function

First, add INITIALIZE VARIABLE ACTION:
To initialize a variable select initialize variable action from the actions set. Then set its properties the same as mentioned in the screenshot. Initialize an array variable.
1# INITIALIZE VARIABLE
Initialize a variable having type ‘array’ and set some of its value 
Power Automate Functions - TAKE Function

2# INITIALIZE VARIABLE
Initialize a variable having type ‘STRING and set some of its value 
Power Automate Functions - TAKE Function

1# ADD COMPOSE ACTION
ADD COMPOSE ACTION FOR TAKING ARRAY:
This compose action get value from the array 
CODE:
take(variables('ARRAY NAME'), 2)

INPUT:
It will take the first two names from the given array values.
Power Automate Functions - TAKE Function

OUTPUT:
Power Automate Functions - TAKE Function

2# ADD COMPOSE ACTION
ADD COMPOSE ACTION FOR TAKING STRING:
This composed action get value from the STRING variable 
CODE:
take(variables('STRING NAME'), 3)

INPUT:
It will take the first three-letter from the given STRING values.
Power Automate Functions - TAKE Function

OUTPUT:
Power Automate Functions - TAKE Function



0 Comments

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