Jeremy_MONZO | 2021-09-30 16:38:10 UTC | #1
Hi guys,
I'm trying to make a reschedule of the schedule using this API /api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/reschedule I have this kind of output { "status": "Processing", "operationId": "885e304c-40f3-47ff-842c-ab3b578c12fc" }
But I have no change on my schedule, I see also there is another API for check the result of a rescheduling /api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}/result but don't know where I can find the runId parameter.
thanks for, your hints. jeremy
brian.trezise | 2021-09-30 16:55:50 UTC | #2
You can get the runId by calling this route and looking for the reschedule run: GET /api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs
A reschedule does not automatically update or re-publish the schedule. If you run a reschedule from the UI using the schedule editor, you'll see that you have to manually review and apply any recommended changes, then upload the updated schedule following these instructions: https://developer.genesys.cloud/api/rest/v2/workforcemanagement/upload-update_schedule
Note that the current method for updating schedules is planned to be deprecated in the coming months as there is currently in development an updated and simpler method for uploading the updated schedule.
Jeremy_MONZO | 2021-10-04 12:21:40 UTC | #3
Thanks Brian again for your feedback.
One think, Before follow these instructions for updating an Existing Schedule : https://developer.genesys.cloud/api/rest/v2/workforcemanagement/upload-update_schedule, I need first to run a reschedule with this API : /api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/reschedule
thanks for your lights Jeremy
brian.trezise | 2021-10-04 12:25:34 UTC | #4
That's correct. Then you fetch the result for the run, and review the suggested changes and apply them to the schedule object before uploading the changes via the update instructions provided
Jeremy_MONZO | 2021-10-04 12:44:03 UTC | #5
brian.trezise, post:4, topic:12210
Then you fetch the result for the run, and review the suggested changes and apply them to the schedule object
These operations listed Above need to be manually done from WFM UI and cannot be handled with API?
brian.trezise | 2021-10-04 13:09:44 UTC | #6
The operations can be scripted. As I mentioned in my previous reply on your original topic, the process is far from trivial which is why it's not recommended, but it can be done. The reschedule result has to be downloaded, along with the agent schedules for all affected management units. Then you have to apply the reschedule results to that schedule, serialize back to json and upload as explained in the doc for updating a schedule
Jeremy_MONZO | 2021-10-05 08:08:13 UTC | #7
Brian, thanks for your input. Waiting the new method for uploading the updated schedule.
BR Jeremy
brian.trezise | 2021-10-05 13:29:41 UTC | #8
Just for clarification, the above workflow to accomplish what you're wanting to do will be the same as it is currently. It's just the specific update schedule step will be easier to do via the SDK and better documented
system | 2021-11-05 13:29:42 UTC | #9
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: 12210