Power Automate (WDL) function
int — Power Automate (WDL) function reference
Parse to integer.
Syntax
wdl
int(value)
Examples
wdl
int(triggerBody()?['Qty'])
→ A whole number
wdl
int(item()?['Quantity'])
→ A whole number
wdl
add(int(variables('countAsString')), 1)→ The parsed count plus one
Common mistakes & gotchas
- int() truncates rather than rounds when given a decimal string or number — int('9.9') returns 9, not 10.
- Passing a non-numeric string (e.g., "N/A") throws an InvalidTemplate conversion error rather than returning 0 or null.
Related Workflow Definition Language functions
From Type conversion