take function. Collection.(Power Automate Cloud flows)

Japanese version.

Takes a sub-array of the specified number of items from the beginning of the array.

take also has a separate text function with the same name.


collectionRequired fieldArray of targets to extract.
countRequired fieldThe number of items to extract.

How to use

In most cases, it is used to initialize or set variables.

The type depends on the data handled by the array.

Clicking on take in the "Expression" tab sets the function name and () in the formula field.

You can change the contents of the function by clicking on the purple icon.

When dynamic content or variables are used in expressions, special specifications are required.

(How to get dynamic content with expressions.)

In this case, array variables [100,200,300,400,500] are provided as examples.

If we do "take(variables('array variables'),3)" as in the example, the result will be [100,200,300].



Collection Functions(Power Automate Cloud flows)