Getting time off requests

Hello,

We're currently planning on getting time off requests per management unit using:
/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/query

I just had a question, if say I make a time off request today for 3 months time, then in 2 months my request is Our plan was to get 33 days in the past from today so we covered requests as they were approved. This misses out on any requests that are not approved in 33 days or may be cancelled after 33 days in the future.

If a request is made today, then cancelled in 40 days time, if I ask for the timeoffrequests from that day I'm assuming it will only include new requests and not ones where there have been changes, is that correct? And if so is there a better way to keep on top of changes to time off requests?

It would include all requests in that date range. The date range is specific for the time off period, not when the time off request changes. The 33 days is for the date range, but obviously the 33 day query period can change (e.g., I can query for 33 days from today or 36 days from today if the startDate is three days from today).

Also note that we do not keep time off requests forever. More information here (limits per agent): Work with time-off requests - Genesys Cloud Resource Center

1 Like

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