Power Automate (WDL) function
body — Power Automate (WDL) function reference
Body of a named action.
Syntax
wdl
body('actionName')Examples
wdl
body('Get_item')?['Title']→ Action body field
wdl
body('Get_item')?['Modified']→ A SharePoint Modified timestamp
wdl
length(body('Get_items')?['value'])→ A number of rows returned
Common mistakes & gotchas
- body('X') is shorthand for outputs('X')?['body'] — use outputs() instead if you need the status code or response headers alongside the payload.
- If the referenced action sits inside a Condition branch, Scope, or Apply to each that didn't execute this run, body() throws at runtime rather than quietly returning null.
Related Workflow Definition Language functions
From Referencing data
Used in these tutorials
Embedding Images in Power Automate Emails: A Cross-Client Compatibility GuideHow to Bypass the 'File Is Locked' Error When Using Excel and SharePoint in Power AutomateAutomated Excel Report Generation from SharePoint Lists with Power AutomateAutomate Contract Sorting in SharePoint with Azure AI and Power Automate