Loading

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

게시 일자: Jan 6, 2025
상세 설명

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. 

솔루션

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) 

추가 자원

Trailblazer Community - Contains on Comma separated value in validation Rule

Knowledge 기사 번호

000386764

 
로드 중
Salesforce Help | Article