Loading

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

Fecha de publicación: Jan 6, 2025
Descripción

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. 

Solución

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) 

Recursos adicionales

Trailblazer Community - Contains on Comma separated value in validation Rule

Número del artículo de conocimiento

000386764

 
Cargando
Salesforce Help | Article