Cheat Sheets/Power Automate/range
Power Automate (WDL) function

rangePower Automate (WDL) function reference

Sequence of integers.

Syntax

wdl
range(startIndex, count)

Examples

wdl
range(1, 5)
[1,2,3,4,5]
wdl
range(1, variables('pageCount'))
[1,2,3,...] one entry per page
wdl
range(0, length(variables('rows')))
A zero-based index array matching an existing array's length

Common mistakes & gotchas

Related Workflow Definition Language functions

From Arrays & collections

Used in these tutorials

← Back to the Power Automate (WDL) cheat sheet