catalog client script to change sc_task state based on variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2025 02:38 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2025 04:13 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2025 09:24 AM
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.