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
- array() only ever produces a one-element array wrapping its single argument — it is not a general "convert this to an array" function; use createArray() to combine multiple values.
- array(null) returns [null], a one-item array containing null, not an empty array — check the source value first if you need to skip nulls.
Related Workflow Definition Language functions
From Type conversion