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

intersectionPower 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

Related Workflow Definition Language functions

From Arrays & collections

Used in these tutorials

← Back to the Power Automate (WDL) cheat sheet