Power Automate (WDL) function
triggerBody — Power Automate (WDL) function reference
The body of the trigger.
Syntax
wdl
triggerBody()
Examples
wdl
triggerBody()?['Email']
→ A trigger field
wdl
triggerBody()?['items']
→ The array/object under the "items" key of the trigger payload
wdl
equals(triggerBody()?['approvalStatus'], 'Approved')
→ true / false
Common mistakes & gotchas
- The ?[ ] syntax is null-safe — it returns null instead of failing when the field is missing.
- triggerBody() is shorthand for triggerOutputs()?['body'] — it never exposes headers or the trigger's status code. Use triggerOutputs() for those.
- For an HTTP request trigger, available properties come from the trigger schema you defined; a schema/payload mismatch produces null through ?[ ] rather than a validation error.
Related Workflow Definition Language functions
From Referencing data