Power Automate (WDL) function
items — Power Automate (WDL) function reference
Item of a named loop.
Syntax
wdl
items('loopName')Examples
wdl
items('Apply_to_each')?['Status']→ Loop item field
wdl
items('Apply_to_each')?['Title']→ The named loop's current item field
Naming the loop lets an inner Apply to each reach an outer loop's current item.
wdl
items('Apply_to_each_2')?['SKU']→ A field from the outer loop, read inside a nested loop
Common mistakes & gotchas
- Use items() with the loop name when you nest loops, so you can target a specific one.
- The loop-name argument must match the action name exactly (spaces become underscores) — referencing a loop that has not started iterating, or does not exist, throws.
- Same as item(), calling items() anywhere outside an Apply to each throws a runtime error rather than returning null.
Related Workflow Definition Language functions
From Referencing data