Power Automate (WDL) function
contains — Power 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
- On strings, contains() is case-sensitive — unlike indexOf()/startsWith()/endsWith(), contains('Report', 'report') is false.
- On an object, contains(object, 'key') tests for the existence of a property key, a different shape of check than the string/array overloads.
Related Workflow Definition Language functions
From Arrays & collections