Power Automate (WDL) function
take / skip — Power Automate (WDL) function reference
Slice from the start / past the start.
Syntax
wdl
take(collection, count) / skip(collection, count)
Examples
wdl
take(variables('rows'), 10)→ First 10
wdl
skip(variables('rows'), 5)→ Everything after the first 5 rows
wdl
take(skip(variables('rows'), 10), 10)→ Rows 11 through 20 — a simple paging pattern
Common mistakes & gotchas
- Neither throws on an out-of-range count — take() with a count larger than the array just returns the whole array, and skip() past the end returns an empty array.
- Both also work on strings, not just arrays: take('PowerStack', 5) returns 'Power'.
Related Workflow Definition Language functions
From Arrays & collections