- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
Hi Team,
i need to add catalog item variable which contains user email to the watch list ,could you please suggest how i can achieve this ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
so you want to update watch_list of RITM with the value from catalog item variable?
if yes then you can do this in multiple ways
1) flow designer
-> if you are using flow for your catalog item, then you can set the watch list using "Update Record" flow action using value from "Get Catalog Variables" flow action
OR
2) workflow
-> if you are using workflow then you can use run script in your workflow, something like this
current.watch_list = current.variables.variableName;
OR
3) after insert business rule on RITM table
(function executeRule(current, previous /*null when async*/) {
// Add your code here
current.watch_list = current.variables.variableName;
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
6 hours ago
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
so you want to update watch_list of RITM with the value from catalog item variable?
if yes then you can do this in multiple ways
1) flow designer
-> if you are using flow for your catalog item, then you can set the watch list using "Update Record" flow action using value from "Get Catalog Variables" flow action
OR
2) workflow
-> if you are using workflow then you can use run script in your workflow, something like this
current.watch_list = current.variables.variableName;
OR
3) after insert business rule on RITM table
(function executeRule(current, previous /*null when async*/) {
// Add your code here
current.watch_list = current.variables.variableName;
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
