WFM Time Off HRIS Integration - Balance Check in the Insert Time-Off Flow

Hi Team,

May I know in which scenario the first decision block "Is Balance Check Required?" (Flow.timeOffStatus == 'Pending') in the Insert Time-Off Flow will take the "Yes" path?

According to the Blueprint article, it seem like the Insert Time-Off Flow will only get triggered for an approved time-off request. In this case, why are we checking the Flow.timeOffStatus == 'Pending' condition as it will be always taking the "No" path?

Regards,
Keng

There are two different cases, when insert time-off can be triggered. One, when time-off is inserted in Genesys in "Approved" status. In this case, the example workflow proceeds with time-off insertion without checking the balance. However, in the second case, when time off is inserted as "Pending" and is auto-approved by the system, it activates the workflow before auto-approving time-off request. That is why it checks for "Pending" and then checks the time-off balance. If workflow does not return "Success", but "InsufficientBalance", then the system is not going to auto-approve the request.