- 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
- SAP SuccessFactors Employee Central
- Business Rules
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, set the Base Object to “Position” and a Rule Type.
2.) Then we need to click on “Manage Parameters” (blue text to the right of Base Object ) and a popup will open. Click “Add New Parameter” and under the boxes “Code” and “Name” enter the text “OriginalValues”, and under the “Object” menu select “Position”, then click “Apply” -:
3.) 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
- 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.
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