SAP Knowledge Base Article - Public

2966664 - Workflow Executed Without AND Conditions Being Met

Symptom

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

You have created a workflow rule to be triggered when following example conditions are met:

  • a ticket is assigned to team ABC (ABC represents the team ID),
  • or team DEF (DEF represents the team ID),
  • and Status is XYZ (XYZ represents the ticket Status).

However, for tickets where the team is ABC but status is ZZZ (ZZZ represents the ticket status), workflow is still triggered.

Workflow_conditions.jpg

Note: the above serves as example scenario, it applies to other conditions structured in such a way as well.

Environment

SAP Cloud for Customer

Reproducing the Issue

  1. Go to the Service work centre.
  2. Go to the Tickets view.
  3. Open ticket 123 (123 represents the ticket ID).
  4. Observe team ID is ABC and status is ZZZ.
  5. Go to the Workflows facet.
  6. Observe workflow has been executed despite Status condition was not being met.

Cause

You have set up condition AND only for one of the groups. This means, the rule is executed if:

  1. Team ID is ABC,

OR

  1. Team ID is DEF and Status is XYZ.

Resolution

If Status should be part of the conditions, then it should be added to each group. In this case, the condition is met based on Group 1.

Keywords

workflow, scheduled, executed, ticket, status, conditions, not met , KBA , LOD-CRM-WKF , Workflow , Problem

Product

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