Power Automate (WDL) function
intersection — Power Automate (WDL) function reference
Items present in both arrays.
Syntax
wdl
intersection(collection1, collection2, ...)
Examples
wdl
intersection(variables('a'), variables('b'))→ Common items
wdl
intersection(variables('requiredTags'), item()?['Tags'])→ Tags present in both lists
wdl
empty(intersection(variables('blockedDomains'), createArray(substring(item()?['Email'], add(indexOf(item()?['Email'], '@'), 1)))))→ true when the sender's domain is not on the blocklist
Common mistakes & gotchas
- The same deep-equality caveat as union() applies: objects only match if every property is identical, so intersecting arrays of full records rarely works as expected — intersect on a projected array of ids instead.
- Also works on objects (not just arrays), returning only the properties present with equal values in every input object.
Related Workflow Definition Language functions
From Arrays & collections