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:
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?
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.
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