- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 07:12 AM
I've got the following catalogue item that lists the different applications that I'm wanting to make the same update to:
Each business application has a business owner, and I'm wanting to extract the value of the business owner so that I can send the following notification to each one:
Does anyone know how I can retrieve the list of Business owners from my list collector and use it so that I can send the notifications to each business owner separately for their affected business applications.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2025 04:53 AM
I solved the issues by creating a for loop in a custom action for my flow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 07:23 AM
you can use after insert BR on RITM table and use this
Create notification, event on RITM table and link it. I hope you are aware on how to do that
Event parm1 contains recipient in Email notification
BR Condition
current.cat_item.name == 'Your Catalog Item Name'
Script:
(function executeRule(current, previous /*null when async*/ ) {
// Add your code here
var val = current.variables.business_applications_to_update;
var gr = new GlideRecord("cmdb_ci_business_app");
gr.addQuery("sys_id", "IN", val.toString());
gr.query();
while (gr.next()) {
gs.eventQueue('eventName', current, gr.owner.email.toString());
}
})(current, previous);
In email script you can get event.parm1 and print the affected business app for that person
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
01-17-2025 04:41 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
01-17-2025 06:06 AM
Hi. Your answer helped me towards finding the correct solution. I appreciate it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 07:24 AM
Please mark your earlier questions as answered if those are resolved.
Members have spent time and efforts in responding to those.
By marking answer as correct other community members can benefit from it.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader