Symptom
It is not possible to use Previous Value from country-of-company for a business rule set as onChange on another jobInfo field.
Environment
SAP SuccessFactors Employee Central
Reproducing the Issue
Firstly, you need to create a simple onChange rule with the expression IF Job Information Model.Country.Previous Value is equal to Job Information Model.Country.Value or vice-versa. Then:
- Certify you have created another expression to trigger rule when changing field value
- Place it in Manage Business Configuration > jobInfo > Field you are using to change to trigger rule
- Prepare Rule Trace as per KBA2257064
- Make changes in Profile to trigger study rule
- Download Rule Trace
You'll see that "jobInfo_country_of_company.previousValue" is considering Value= Null.
Cause
Hard-coded field as per Product Design.
Resolution
Expected Behavior once this field depends on Picklist ID: ISOCountryList and it's associated to Legal Entity.
In alternative, use the expression to navigate to Country within the Company, for example "Job Information Model.Company.Previous Value.Country".
Refer to Guide: Job Information.
See Also
Keywords
country-of-company, legal entity, ISOCountryList, picklist, job information, jobInfo, business rule, onChange, hard-coded, employee central, employee profile, successfactors, SF, EC, EP , KBA , LOD-SF-EC-JOB , Job Information , LOD-SF-EC , Employee Central , LOD-SF-EC-JOB-RUL , Job Info Business Rules , How To
SAP Knowledge Base Article - Public