Cheat Sheets/Power Automate/null-safe access ?[ ]
Power Automate (WDL) function

null-safe access ?[ ]Power Automate (WDL) function reference

Read a field without failing.

Syntax

wdl
expression?['propertyName']

Examples

wdl
body('Get_item')?['Author']?['Email']
A value or null
wdl
triggerBody()?['Customer']?['Address']?['City']
A value or null, safely chained through three levels
wdl
if(equals(item()?['Approver']?['Email'], null), 'unassigned', item()?['Approver']?['Email'])
The approver email, or "unassigned"

Common mistakes & gotchas

Related Workflow Definition Language functions

From Objects & JSON

← Back to the Power Automate (WDL) cheat sheet