- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2022 09:23 AM
Hi,
I have 2 Catalog Items for which there is a workflow attached to it (a very basic approve/reject workflow).
Whenever these catalog items are submitted, an approval request will be sent to the assigned users. Is it possible to not have these approval request emails sent to the assigned users for these particular CI?
Or is it possible if we can just modify the approval email for these particular CI and not the other CI?
Please help, it's urgent!
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2022 09:35 AM
Hi @Navya43 ,
Yes. You can add the condition in notification as below to exclude the catalog item by adding conditions
Click on condition then dot walk as below
Show related fields - Approval For Fields-Requested Item Fields- Item
Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2022 09:11 PM
How can we filter out a catalog item for email notification?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2022 12:35 PM
@Navya43 then you can try this
if(current.sysapproval.sys_class_name=="sc_req_item")
{
var gr = new GlideRecord('sc_req_item');
gr.addQuery('sys_id',current.sysapproval);
gr.addQuery('cat_item','your_Catalog_item_sys_id')
gr.query();
if(gr.next())
{
if(gr.configuration_item=="your_ci_sys_id")
{
answer =false;
}
}
}
Hope this helps
Thanks