Somik_Mukherjee1 | 2023-03-20 16:03:55 UTC | #1
When executing the final API /api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/update for processing a schedule update, we get a notification response saying below:
{ "status": "Error", "operationId": "a242d7e7-b449-4e4f-b16c-147ae99ce1b6", "eventType": "Update" }
Now how do I figure out the error using operationId?
Somik_Mukherjee1 | 2023-03-20 17:03:48 UTC | #2
@tim.smith can you help me here?
tim.smith | 2023-03-20 17:35:27 UTC | #3
POST /api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/update doesn't appear to return anything useful to tell you about the error. Unfortunately, this appears it's working as intended per the documentation. Please open a case with Genesys Cloud Care to investigate the issue as it doesn't appear there's any way for you to obtain additional information on your own and we cannot access your org's data via this discussion in the forum.
brian.trezise | 2023-03-21 13:38:26 UTC | #4
There is a tutorial here for the process of updating a schedule.
Leaving out the specifics since it's explained in more detail at the above link, the general process is as follows:
- Subscribe to the schedule notification topic for the business unit
- Generate your upload URL
- Upload your request to the URL returned in step 2
- Call the route to start the update
- Wait for a notification with an operationId matching the one returned in step 4.
In case of an error, you will receive a notification matching the operationId with the status Error as you described. On that same notification will be metadata indicating the full context of the error, which will tell you what you need to change to make the request work. I am not positive on the details on the SDK on how to get the metadata, I believe there are two methods for getting the notifications and one of them includes the metadata with the error.
I'll make a note to add error handling information to the documentation for this process.
system | 2023-04-21 00:28:30 UTC | #5
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 19000