skip function. Collection.(Power Automate Cloud flows)

Japanese version.

Deletes any number of items from the top of the array.

Spec

skip(<collection>, <count>)
ArgumentDefaultDescription
collectionRequired fieldTarget array.
countRequired fieldNumber of items to be deleted.

How to use

In many cases, the type is used for "Array" variable operations.

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

The first argument is the target array and the second is the number of items to be deleted.

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

(How to get dynamic content with expressions.)

If you see something like the following, the setup is complete.

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

For example, we have array variables [100,200,300,400,500].

If the expression is "skip(variables('array'),2)", The result will be [300,400,500].

At this time, the array variables used as arguments to the skip function remain as they were.

Only the newly created array variables are deleted.

---

Links

Collection Functions(Power Automate Cloud flows)