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

containsPower Automate (WDL) function reference

Test for membership.

Syntax

wdl
contains(collection, value)

Examples

wdl
contains(variables('ids'), 7)
true / false

Substring test on a string.

wdl
contains(item()?['Subject'], 'Urgent')
true / false

Membership test on an array.

wdl
contains(body('Get_item')?['Tags'], 'VIP')
true / false

Common mistakes & gotchas

Related Workflow Definition Language functions

From Arrays & collections

Used in these tutorials

← Back to the Power Automate (WDL) cheat sheet