Loading

CONTAINS operator in Salesforce Process or Flow Does Not Work for Comma Separated Values

Data pubblicazione: Jan 6, 2025
Descrizione

Passing multiple comma-separated values against the CONTAINS operator in the same condition doesn't evaluate the Process or Flow as intended.

Example Process:
Set Filter Conditions: 
[Case].Contact.Email   CONTAINS   someone@company.com,someoneelse@company.com

The above example process will not evaluate as intended because it includes multiple values separated by a comma. 

Risoluzione

Process Builder and Flow do not support comma-separated values in rule criteria. In order to get this functionality to work,  the Process/Flow criteria can be modified to only use one value per Filter Condition and add additional Filter Conditions as needed, ensuring that each Filter Condition is grouped together with an OR Filter Condition.

Workaround:
Using the same condition as above:

Set Filter Conditions: 
1.  [Case].Contact.Email   CONTAINS   someone@company.com
2.  [Case].Contact.Email   CONTAINS   someoneelse@company.com

Filter Conditions (
Customize the filter logic):
(1 OR 2) 

Risorse aggiuntive

Trailblazer Community - Contains on Comma separated value in validation Rule

Numero articolo Knowledge

000386764

 
Caricamento
Salesforce Help | Article