Power Automate (WDL) function
outputs — Power Automate (WDL) function reference
Outputs of a named action.
Syntax
wdl
outputs('actionName')Examples
wdl
outputs('Compose')→ Action output
wdl
outputs('Send_an_HTTP_request')?['body']?['id']→ A value from the HTTP response body
Some actions expose statusCode/headers directly on their outputs, not just body.
wdl
outputs('Compose')?['statusCode']→ 200
Common mistakes & gotchas
- The action-name argument must match the underlying action name exactly (spaces become underscores), as seen in Peek code — a typo throws an ActionNotFound-style error at save time, unlike a missing property under ?[ ] which just returns null.
- outputs() returns the whole result object including headers/statusCode for HTTP-style actions — drill into ?['body'] to reach the payload, same distinction as body() vs outputs().
Related Workflow Definition Language functions
From Referencing data
Used in these tutorials
From Breaking to Resilient: Three Error-Handling Strategies in Power AutomateEmbedding Images in Power Automate Emails: A Cross-Client Compatibility GuideHow to Bypass the 'File Is Locked' Error When Using Excel and SharePoint in Power AutomateFrom Raw Strings to Structured Data: A Guide to Power Automate Text Functions