Power Automate (WDL) function
string — Power Automate (WDL) function reference
Convert to text.
Syntax
wdl
string(value)
Examples
wdl
string(variables('count'))→ "42"
wdl
concat('Total: ', string(variables('orderTotal')))→ "Total: 199.5"
Useful for logging a payload into a Compose action.
wdl
string(triggerBody())
→ A compact JSON string of the whole trigger body
Common mistakes & gotchas
- string() on an object or array produces compact JSON text, not a friendly summary — pull specific properties instead for user-facing text.
- string(null) returns the four-character text 'null', not an empty string — check for null before converting if you don't want the literal word appearing.
Related Workflow Definition Language functions
From Type conversion