Symptom
How to access hire date in benefits business rules?
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
- SuccessFactors Employee Central
- Global benefits
Reproducing the Issue
Created a rule to check whether the date in one of the custom field within benefit employee claim detail object is before user's hire date. Rule is not getting triggered
Example:
- Custom field reciept date is configured within benefit employee claim detail object
- Requirement is to check whether reciept date is on or before employee's hire date
Cause
Business rule is trying to access user data via context.current user.
Resolution
Context.current user will not retrieve data from a child object in benefits framework. Benefit employee claim detail is the child object of benefit employee claim,it do not have any user related field.
To access user related field:
1.Create rule with the parent object as the base ie benefit employee claim . Then access the user details via worker id field within the business rule
2.Add this rule in vaildate rules section within benefit employee claim object
Admin center---->Configure object defintion---->Benefit employee claim--->Validate rules
Keywords
global benefits hire date employment details context current user benefits rule benefit employee claim detail claim , KBA , LOD-SF-EC-GBF , Global Benefits , How To