Power Automate (WDL) function
item — Power Automate (WDL) function reference
Current item in Apply to each.
Syntax
wdl
item()
Examples
wdl
item()?['ID']
→ Loop item field
wdl
item()?['FileLeafRef']
→ The current loop item's file name
wdl
concat('Row: ', string(item()?['ID']))→ "Row: 14"
Common mistakes & gotchas
- item() only resolves inside the Apply to each loop that contains it — used outside any loop it throws an InvalidTemplate error at save or run time, not just a null result.
- In nested loops, a bare item() always refers to the innermost enclosing loop. To read the outer loop's current item from inside an inner loop, use items('OuterLoopName') instead.
Related Workflow Definition Language functions
From Referencing data
Used in these tutorials
Filtering SharePoint Lists in Power Apps: Practical Examples and PatternsShow Only My Records: Three Ways to Filter a Power Apps Gallery for the Current UserPower Automate Select Action: Beyond Basic Column Picking – 5 Advanced TransformationsStreamline Invoice Processing with AI Builder and Power Automate