CONTAINS_ANY
CONTAINS_ANY:
arg: { arg } # required
search: { search } # required
Description
The CONTAINS_ANY operation checks if a searchable value (arg) contains at least one item from a given collection (search). This is useful for checking against a list of forbidden or alternative values.
- When
argisTextorBytes, it checks if any substring from thesearchcollection is present. - When
argis aListorSet, it checks if any element from thesearchcollection is present.
Parameters
arg(Operation<Text|Bytes|List|Set>, required):- The value to be searched within (the haystack).
search(Operation<List|Set>, required):- A collection of items, where at least one must be found in
arg.
- A collection of items, where at least one must be found in
Return Type
Examples
-
Checking if an instance type is any of the legacy types:
CONTAINS_ANY:
arg:
FIELD:
path: CA10__instanceType__c
search:
SET:
itemType: TEXT
items: ["t1.micro", "m1.small", "m1.medium"]