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

array — Power Automate (WDL) function reference

Wrap a value in an array.

Syntax

wdl
array(value)

Examples

wdl
array(item())
→ A one-item array

Normalizes a possibly-single value so it can feed an Apply to each.

wdl
array(triggerBody()?['SingleApprover'])
→ A one-item array wrapping the approver
wdl
union(array(item()), variables('processedItems'))
→ The current item merged into a running list

Common mistakes & gotchas

Related Workflow Definition Language functions

From Type conversion

Used in these tutorials

← Back to the Power Automate (WDL) cheat sheet