Automatic set of “defaultLocale” standard-element based on employee’s country in employee central
Author: Sandip Biswas, Certified Employee Central Consultant
Background: In Suceesfactors all user’s date & decimal format in UI is dependent on standard element “defaultLocale” of succession data model.
XML view of Succession Data Model:
Manage Business Configuration view of Succession Data Model:
When we load the employee profile/people profile data through “Basic Import” we can specify the value for “defaultLocale” in the load file & based on the ““defaultLocale” value user’s date & decimal format is displayed in successfactors.
Sample File Structure with data:
Challenge: When Employee Central is active in instance & if we do manual hiring through “Add New Employee “option by default the “defaultLocale” is set to “en_US”. To correct/ modify the “defaultLocale” we have to again do the “Basic Import” or in the home page through “Options” --> “Change Language” we have to change the default language of employee to correct the date & decimal format which is displayed in the successfactors UI.
Home Page --> Options:
Options --> Change Language:
To automate, the correct value population for default locale (standard-element “defaultLocale”) based on employee country, we can use “Business Rule” & “HRIS Sync” functionality. For that we have to follow the below steps.
Step I: Enable any unused custom field in employee Job Information. In the below example we are using field custom-string1.
Step II: Set the HRIS Sync Mapping value for the custom field in the Details option. Mapping should be done with the standard field id “defaultLocale”.
Step III: Create a business rule to set the value for custom field which has been enabled in employee job information & mapped with standard element “defaultLocale”.
Sample Rule:
Rule Explanation: It’s a very simple rule where based on Job Information country we are setting the value for the custom field named as “Default Language”. Now based on your requirement you can adjust the sample rule to set the value for “Default Language”.
Step IV: Adjust the RBP for the newly enabled custom field in job information. You can hide the field from employee/ manager but can make it visible to the super admin role based on customer requirement.
Step V: Add the rule to the “onSave” of Job information portlet.
Example of result: We have manually hired two employees in system one for USA & another for India (USA Test & India Test), let’s see the default language for those two employees in system.
Here we can see in people profile/ employee profile default language is set based on the custom rule. No need to modify the language manually in system, its automated now.