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

xpathPower Automate (WDL) function reference

Query an XML document.

Syntax

wdl
xpath(xml, expression)

Examples

wdl
xpath(xml(body('HTTP')), '//title/text()')
Matching nodes
wdl
xpath(xml(body('HTTP')), 'string(//Invoice/Total/text())')
A plain string value, e.g. "1250.00"
wdl
xpath(xml(triggerBody()?['content']), '//Item/@sku')
An array of matching sku attribute nodes

Common mistakes & gotchas

Related Workflow Definition Language functions

From Objects & JSON

← Back to the Power Automate (WDL) cheat sheet