Discussions

Ask a Question
Back to all

How can I find the Work Order cancel reason via API?

In the Work Order interface, when a user cancels a Work Order, there is a drop-down that allows them to select a reason. The reason is displayed in some places in the Corrigo interface (like when the Status is displayed as "Cancelled: Duplicate Work Order").

I am trying to figure out how I can retrieve that cancel reason via the API. When I retrieve the Work Order data I see the Status as "Cancelled" but I do not see any fields with the information "Duplicate Work Order". In reading through the documentation it seems like it might be stored in a related WoLastAction/LastAction object, but I have not been successful in retrieving one for a Work Order that I know has a Cancel Reason value.

Assuming I have a Work Order Number, can you give me some clear steps I can follow that will allow me to retrieve the Cancel Reason field? And If there are more than one (like if WO was cancelled, re-opened, and then cancelled again), how can I determine which is the most recent?