Symptom
Despite the fact that leave is requested in the Administer Time UI under "Time Section>Administer Time>Absence Tab>Create Absence,condition “Employee Time.Workflow Initiated By Admin” is evaluated as false which resulted in automatic approval of workflows.
Environment
SAP SuccessFactors Employee Central - Time Off
Reproducing the Issue
- Create a Rule Trace via Business Execution Log
- Navigate to Employee Profile>Time management
- Click on Administer UI>Absence>Create Absence
- Leave request auto approved
- Download the rule trace, see that the Condition “Employee Time.Workflow Initiated By Admin is equal to "No” failed despite leave request created in admin UI by admin
-Rule trace logs: “Retrieved 'EmployeeTime.workflowInitiatedByAdmin'. Value: 'false'.
Cause
Working as Designed
Resolution
- It is an expected behavior.
- The "workflow initiated by admin" field is set to true/false only when the Employee Time record is saved, hence it cannot be used on the workflow rule.
Keywords
Retrieved 'EmployeeTime.workflowInitiatedByAdmin.Value: 'false', EmployeeTime.workflowInitiatedByAdmin', Retrieved 'EmployeeTime.workflowInitiatedByAdmin', workflowInitiatedByAdmin, workflow Initiated By Admin, Approved Automatically, workflow auto approval, workflow admin, admin workflow, leave request by admin, INC3447683 , KBA , LOD-SF-EC-TIM-WAN , Workflows - Alerts - Notifications , LOD-SF-EC , Employee Central , LOD-SF-EC-TIM , Time Off , LOD-SF-EC-TIM-ABS , Absence error's - Calculations, Deductions, TT&ET , LOD-SF-EC-TIM-RUL , TAT Rules, Validation & Take rules , Problem