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

setPropertyPower Automate (WDL) function reference

Set/replace a field.

Syntax

wdl
setProperty(object, property, value)

Examples

wdl
setProperty(item(), 'Status', 'Done')
New object
wdl
setProperty(item(), 'Status', if(greater(item()?['DaysOpen'], 30), 'Overdue', 'Open'))
The item with Status computed and overwritten
wdl
setProperty(triggerBody(), 'Total', add(triggerBody()?['Subtotal'], triggerBody()?['Tax']))
The trigger body with a new/updated Total field

Common mistakes & gotchas

Related Workflow Definition Language functions

From Objects & JSON

Used in these tutorials

← Back to the Power Automate (WDL) cheat sheet