SAP Knowledge Base Article - Public

2562714 - Scheduled Workflow Rule using the option 'Before Object Change' is not working as expected

Symptom

Your scheduled workflow rule does not trigger the expected notifications.

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 realise 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).

Resolution

If you want to use the type "Before Object Change" in your conditions, you need to define the rule timing to either 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