Symptom
- Unable to trigger saveAlert rules on workPermitInfo if the IF statement contains a condition to check the value of a field is not equal to the previous value.
- Why is my Work Permit Rule not triggering?
- Why Can't I compare a current value to a previous value when using 'Work Permit Model' as my Rules Base Object
Environment
- SAP SuccessFactors HCM Cloud
- Employee Central
Reproducing the Issue
- Create a saveAlert rule using Work Permit Model as the base condition
- In the rule include a condition in the IF statement to check the value of a field is not equal to the previous value
- For exmaple, expiration date is not equal to previous expiration date.
- Set the THEN statement to trigger Alert conditions.
Result:
The Alert will not be sent out to the corresponding recipients.
Cause
- Currently the Work Permit portlet is not effective Dated
- There is a Limitation for non-effective Dated portlets, where when an IF statement contains a condition to check the value of a field and compare it to a previous value, the rule does not trigger properly, because the system returns a null value
- This is expected behaviors because the portlet does not respect Effective Dating hardcoded logic, so the system is unable to compare the values
- If a Rule Trace is executed the result will show 0 entries
Resolution
Remove any conditions that compare a current value to a previous value in the IF Statement
Keywords
ECT-71964, saveAlert, workPermitInfo, workPermitInfo Model, Trigger, Rule, previous value , KBA , LOD-SF-EC-PER-WRK , Work Permit - Config, Rules, RBP, UI , LOD-SF-EC , Employee Central , LOD-SF-EC-ALR , Alerts & Notifications (saveAlert - EC Core only) , Problem
Product
SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HCM Core all versions