Symptom
You have a requirement to make certain National ID Card Types mandatory in Add New Hire wizard.
Environment
- SAP SuccessFactors Employee Central - Localization
- SAP SuccessFactors Employee Central - Business Rules
- SAP SuccessFactors Employee Central - Hire / Rehire
Reproducing the Issue
Sample Scenario:
When adding National ID for Argentina in the Add New Employee Wizard:
- A message should be raised if any of the IDs is missing (DNI or CUIL).
- A message should be raised if both IDs are missing (DNI or CUIL).
- A message should Not be raise if both IDs are entered.
Resolution
If the requirement is to check if two or more nationalid records (or any grid portlet records) exists during hire, then we need to create a rule with "Employee information" as base object, and associate that rule with any other element other than what we are validating. For example, if we are validating for nationalids, please add that rule as an onsave rule for personalInfo or jobInfo portlet. Then it can validate if both nationalid records exists or not.
In this use case, configure the following business rule and add it as onSave under jobInfo or persoanlInfo HRIS Element in Manage Business Configuration.
Note to consider: This is only supported during Hire/Rehire scenario. If you have a requirement to enforce certain National ID Card Types after Hiring, this is currently not supported due to a limitation with rules in Grid Portlets.
Keywords
national id, mandatory, add new hire, hire, INC1114261, grid portlet , KBA , LOD-SF-EC-PER-NAT , National ID - Config, Rules, RBP, UI , How To