Developer Q&A
How to set ScheduledStart Date and Time on PMRM workorders?
Hi,
We had the below approach to create PMRMs with CAD currency (not default USD)
Once Corrigo send the POST message to our system, we validate the currency and cancel the PMRM and create new one with CAD Currency by executing the below.
- We execute WoScheduleRoutine command and retrieve all the data of the created PMRM workorder
- And re send the data in WoCreateCommand by setting the compute_schedule to "False" to create it with CAD currency.
At this moment we are unable to see the ScheduledStart Date and Time in the WoScheduleRoutine response. Is there a way to retrieve that as part of WoScheduleRoutine command? If yes, how?
And also, can we pass it through WoCreateCommand by setting the compute_schedule to False and create the PMRM with the ScheduledStart Date and Time.
Note: ScheduledStart can be found on the WorkOrder under "Scheduling and Assignment" section "access/appt/start" field
WorkOrder example:
https://stage-sephora.corrigo.com/corpnet/workorder/workorderdetails.aspx/237974