- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2025 12:26 PM
Looking for help on how to update the the RITM watch list from values from 2 variables on that Catalog Item.
How best to accomplish this?
Thank you.
Rachel
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2025 05:58 AM
then combine both the scripts in your 1 business rule and delete the other one
updated script for both
(function executeRule(current, previous) {
var list = [];
if (current.variables.primary_program_poc)
list.push(current.variables.primary_program_poc.toString());
if (current.variables.secondary_program_poc)
list.push(current.variables.secondary_program_poc.toString());
if (current.variables.requested_for)
list.push(current.variables.requested_for.toString());
if (list.length > 0) {
current.watch_list = list.join(',');
current.setWorkflow(false);
current.update();
}
})(current, previous);
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2025 10:26 AM
Hi @rachelconstanti ,
The reason Business Rule is not working because of mismatch: you read the catalog variables from current.variables.<name> but then you used current.<name> (which is undefined). Also remember the watch list expects sys_user.sys_id values (a comma-separated list).
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2025 04:05 AM
How do I write the business rule?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2025 01:32 AM - edited 10-10-2025 01:33 AM
Hi @rachelconstanti ,
You can update the RITM Watch List directly from catalog item Flow.
Trigger type -> Catalog Item
Flow must be attached to catalog item.
Refer to the attached screenshot for implementation details.
If this solves your query mark this as correct/helpful.
Thanks
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2025 04:41 AM
Thank you for the response however we are not using flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2025 04:21 AM
you can use after insert business rule on RITM table to update the watch list field on RITM.
both the variables are reference type or list type?
share screenshots
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
