A Customer has a requirement to Auto-generate the external code upon creating a new Benefit.
SuccessFactors Employee Central Global Benefits
Reproducing the Issue
1. Go to Benefits Admin Overview Page.
2. Create a new Benefit
To auto generate the external code for a benefit object you need to create 2 rules.
1. An OnInit Rule that will set the value for the temporary ID of the benefit Object.
2. an OnValidate Rule that will set the value for the external code permanently.
The Image/s below came from a demo instance, any resemblance to a live customer data is purely coincidental.
NOTE: In case you wanted to know more information on how to add a proper "Set" statement to auto generate the code please refer to this KBA:
2502254 - Auto-generate Incremental External Code on MDF Object.
ExternalCode, Benefit. , KBA , LOD-SF-EC-GBF , Global Benefits , Problem