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

trimPower Automate (WDL) function reference

Remove leading/trailing spaces.

Syntax

wdl
trim(text)

Examples

wdl
trim('  hi  ')
"hi"
wdl
equals(trim(item()?['Code']), 'PO-100')
true / false
wdl
not(empty(trim(triggerBody()?['Comment'])))
false for a whitespace-only comment

Common mistakes & gotchas

Related Workflow Definition Language functions

From Strings

Used in these tutorials

← Back to the Power Automate (WDL) cheat sheet