SAP Knowledge Base Article - Public

2562714 - Workflow Rule Not Working with Condition Before Object Change

Symptom

Your scheduled workflow rule is not being triggered.

Environment

SAP Cloud for Customer

Reproducing the Issue

You created a workflow rule with at least one condition using the option "'Before Object Change". You selected the Timing = Scheduled.

  1. Go to the Administrator workcenter.
  2. Go to the Workflow Rules view.
  3. Click new.
  4. Set the Timing as Scheduled and use "Before Object Change" in one of the conditions.
  5. Activate the workflow rule.

    ScheduledWFR.png

RESULT: After waiting for the scheduled time, you see that the workflow rule is not triggered for the expected objects, even when the conditions are met.

Cause

In scheduled workflow rules, the condition of type "Before Object Change" is not supported.

The system checks the rule at the time of it being triggered. If the workflow rule is scheduled, that means that the change of the value already happened and at the time of the workflow execution, there is no longer a 'before' value (as the object change already happened previously).

The same is true for Workflow Rules with Timing equal to On Creation Only. When the object is created, there is no previous image that the Before Object Change can use, so this would also not work.

Resolution

The Before Object Change scenario only works with the timing On Create or On Every Save.

Keywords

Scheduled Workflow, Workflow, Workflow Condition, Before Object Change, Scheduled , KBA , workflow , scheduled workflow , before object change , LOD-CRM-WKF , Workflow , Problem

Product

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