catalog client script to change sc_task state based on variable

Jenna
Tera Expert

I have a catalog item that creates a catalog task. One of the variables on this catalog item is u_status. When that variable is changed to Complete and the record is saved, I would like the state to change to closed complete(3). I have tried an onSubmit and onLoad catalog client script, but cannot get it to work. How do I write this so it works?

6 REPLIES 6

@Jenna 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

 No. I created a before business rule on sc_task table following your suggestion, but the state on the task state did not update when the status field was changed to complete.