The CreatorCon Call for Content is officially open! Get started here.

How to not send the Approval Request Email for particular Catalog Items?

Navya43
Tera Contributor

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 

1 ACCEPTED SOLUTION

Gunjan Kiratkar
Kilo Patron
Kilo Patron

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

GunjanKiratkar_0-1669052068815.png

 


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

View solution in original post

11 REPLIES 11

Navya43
Tera Contributor

How can we filter out a catalog item for email notification?

@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