SAP Knowledge Base Article - Public

3154252 - Workflow Rule with Condition "Contains" Operator is not Triggered

Symptom

You have configured a Workflow Rule with Condition "Contains" and are using a Field which has 0..n Associations and chose just a part of a number for the condition. Althought this value is contained in the field, the Workflow Rule is not triggered.

Environment

SAP Cloud for Customer

Reproducing the Issue

  1. Navigate to Administrator Work Center.
  2. Go to Workflow Rules View.
  3. Open the Workflow rule ABC (in which ABC is the workflow rule description).
  4. For this workflow rule the condition maintained is 'DEF[] Contains <0..n>' (where DEF is a field available in Condition Dropdown and <0..n> is a number which should be contained in the field).
  5. Although the condition is met, the workflow rule is not executed.

Cause

The field you chose has a 0..n association. Hence, contains operator would check the exact value for the field in question.

Resolution

When using condition DEF[] you need to maintain the value between asterisk(*) (e.g. *123*).

Keywords

workflow; rule; workflow rule; asterisk; contain; contains; condition; conditions; []; field; , KBA , LOD-CRM-WKF , Workflow , How To

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions