SAP Knowledge Base Article - Public

2080825 - Triggering Workflows on Position Object by Checking for Previous Value in Field

Symptom

  • How to add a rule to trigger a workflow based on a Field Level change.
  • Customer would like to trigger a workflow when a specific field is changed in a Position, either via Make Correction or Insert New Record

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

Environment

  • SAP SuccessFactors Employee Central
  • Business Rules

Reproducing the Issue

Cause

Resolution

In this article we will cover how to add rule validations (IF conditions) to trigger a workflow for field level changes made inside an existing Position record (Take Action Make Changes) and if the field value is set in a  new record (Insert New Record).

Workflow trigger for field changes made via “Make Corrections”

  1.  First we need to create a new rule, give it an ID and a name, Ccenario should be set as "Metadata Framework -> Rules for MDF Based Object" and set the Base Object to “Position”.

  2. The next step is to set the IF conditions. As we have now defined the “OriginalValues” parameter, we are now able to validate against Original values of the record being edited. In the below example, the rule will validate that 1) Original Values is not equal to Null (not blank), 2) the new field value is not equal to the previous value in the field

 2018-06-13_15-22-47.png

Please Note:

  • This will only work for the position object and no other MDF objects
  • If using this configuration, we recommend carrying out update and creations changes via import, in two separate import files. One for creation and one for update.

  • If you are triggering a different workflows for creation and update. The system will treat any changes made in the workflow step (even for creation workflows) as an update.

See Also

Keywords

OrginalValues, Checking Previous Values of MDF fields, Triggering MDF Workflows, Position, Model, Workflow, Previous Value, Business Rule, Original Values , KBA , sf employee central , LOD-SF-EC-POS , Position Management , LOD-SF-EC-WFL , Workflows - Configuration, Tools, Objects & Rules , How To

Product

SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HCM all versions