This blog is about how to automate the process of adding a job relationship on change of a Business Unit, Department, Division, etc. (as per the requirement). Here I have done it with the Business Unit (Renamed for Department FO) and populated Employee HR (HR BP) as the Job Relationship type.
1. Add a custom field in the Business Unit object with data type User
Navigation: Configure Object Definitions -> Select Object Definitions -> Select Business Unit Object
2. Add data to the Business Unit object using Manage Data Tool / Import
Tools: Intelligent Service Center (ISC), Integration Center
Step 1: Navigate to Integration Center from the search tool and create an integration with Trigger Type as Intelligent Service
Step 2: Select the source as Change in Business Unit (Selected this event to avoid confusion later with the Label and Object i.e., Department FO and Renamed label Business Unit)
Recommended to Use Change in Department event as the source
Step 3: Do the field Mappings
Start Date as Start Date of Job Information,
User ID from Job Information,
and Name with the custom field which we created in the Business Unit
Step 4: Now map this integration in the event Change in Business Unit. Also, keep Timing as When event is published
Step 5: Write an onPostSave rule in Job Information (Manage Business Configuration) to trigger this event on Business Unit Change.
Hurray!! The configurations are done.
Note: First I tried to write a Business Rule for the automation of populating HR BP Based on the Business Unit. I tried it onSave/onPostSave and onChange.
The rule was working fine only when we select both Job Information and Job Relationship together while we Change Job and Compensation Info using Take Action from Employee Profile.
The rule didn’t work as it threw the following error: