WFM API - Scheduled Time Off - Agent Specific

Hi Team,

I want to retrieve the Scheduled Time Off details for specific Agent based on Agent User ID and Date Range without providing any other details like business units or management units, etc. Which WFM API would will provide the details/filters.

Regards,
Jeevan.

No endpoint exists where you only specify a userid without any other Ids to fetch time off requests.

https://developer.genesys.cloud/useragentman/workforcemanagement/#post-api-v2-workforcemanagement-managementunits--managementUnitId--timeoffrequests-query is the closest (be sure to read description and expand to see what can be provided in request body).

https://developer.genesys.cloud/useragentman/workforcemanagement/#get-api-v2-workforcemanagement-agents--agentId--managementunit can be utilized to find out to which management unit an agent belongs.

Part of development using an API is constructing things utilizing multiple endpoints.

Also, be aware we only retain a specific amount of requests depending on their status: Work with time-off requests - Genesys Cloud Resource Center

1 Like

You noted 'scheduled' if you really want to know time off requests that are scheduled on published schedules, then that will be very difficult. You would have to search for agents schedules and examine for scheduled time off requests. If instead you want to know those that have been approved, then my answer above is sufficient.

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.