Changing Workorder Status

Hi,

how would you change the workorder status using the API. I have been going in circles for a few days and have finally thrown the towel in !

Hi Martin, if you could tell me where you’re stuck I can give you more details, but in general it’s done like this:

w.WorkorderService.WorkorderStatusID = workorderStatusId;

Where ‘w’ is the service work order you previously fetched and ‘workorderStatusId’ is the id of the status you want to set and then just save (w.save())

Thanks for the help.

Martin

No problem, let me know if you need help with anything else.
Cheers!

It’s very simple use below code
w .WorkorderService.WorkorderStatusID = workorderStatusId;
if you nedd further more help contact me