Schedule Update Error

Hello,

We are developing a UiPath bot to update agent schedules for exception purposes (e.g. overtime, training, IT issues, etc.). We followed the steps in this article Updating an Existing Schedule, and also tried copying the API calls made when manually updating schedules via Inspect -> Network but we are unable to update the schedules. Any help in this issue is greatly appreciated, especially with gzip. Do we need a .gzip file or a will it work with a .json file?

We setup notifications using this topic: v2.workforcemanagement.businessunits.{id}.schedules

But all we see is this, no further details of the error:

{
  "status": "Error",
  "operationId": "a48c97c2-bcd0-472b-858d-e8f7f680a032",
  "eventType": "Update"
}

Brian Trezise (Genesys Employee) mentions another form of this notification with metadata and complete information of the error. Can anybody tell us how to set that up?

Thank you

I'm not as familiar with the details of how the SDK handles notifications, but I think I found an example here (this is for historical adherence but the notification workflow should be similar enough):

If you search for HistoricalAdherenceEventListener in the above page, you'll find example code for an event listener (for a different topic). Within that code there is an override method at the end onEvent():

public void onEvent(NotificationEvent<?> event) 

The code in the example doesn't show it, but there should be something like event.getMetadata() that you can use to inspect the notification metadata.

Hi Brian, thank you for your response.

How about the "gzip encoded json", in the Body of the PUT request should I have a .gzip file or a .json file?

I am using Postman and will then do the same API calls in UiPath.

The file name doesn't matter. What does matter is that the data is gzip encoded json. So you'll want to output your data as json and then gzip it before uploading it

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