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
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”
- 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”.
- 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
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.
Note:
If an approval process is necessary, then the Workflow should be configured on the Position level. Once the Position Workflow is approved, then that is the time that the Supervisor field in Job Info is updated.
FAQ - Additional Information
Q) Where can I get information on this from the Guide?
A) Guide: Position Chapter: Workflow For Synchronizing Position To Job Information
Guide:Guide :Implementing the Metadata Framework (MDF)
Chapter: Chapter- Workflows in MDF
See Also
- 2575300 - Job Info Workflow not triggered during Parent Position Change in Org Chart
-
3499576 - How To Create a Rule To Trigger Workflow When Creating a New position Via Manage Position Only
- 2080825 - Triggering Workflows on Position Object by Checking for Previous Value in Field
- 3250407 - Position Org Chart - Copy Position Workflow is not triggering as expected
- 2504730 - Position updates not being respected with workflows
- 2744628 - How to Trigger workflow on Position Update
- 2583121 - Workflow for Supervisor changes in Position Org Chart is not working - Employee Central
- 2744628 - How to Trigger workflow on Position Update
- 3344602 - How to Trigger Job Information workflow after position data is propagated from Manage Positions
- 2319689 - Troubleshooting Position Management Issues
- 2529515 - Position To Job Information Sync Troubleshooting Guide (PositionToJobInfoSyncRuleCheck) - EC
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