Power Automate (WDL) function
bool — Power Automate (WDL) function reference
Convert to boolean.
Syntax
wdl
bool(value)
Examples
wdl
bool('true')→ true
wdl
bool(parameters('FeatureFlagEnabled'))→ true / false
wdl
if(bool(item()?['IsActive']), 'Active', 'Inactive')
→ "Active" / "Inactive"
Common mistakes & gotchas
- bool() only accepts the literal strings 'true'/'false' (case-insensitive) or an actual boolean — bool('yes') or bool(1) throws rather than coercing.
- Fields already sourced from SharePoint Yes/No columns or Dataverse two-option fields typically arrive as real booleans, making a bool() wrap redundant (though harmless) on them.
Related Workflow Definition Language functions
From Type conversion