Disable Request opened/approved emails

tgcorbin
Mega Contributor

Hello,

I am very new to ServiceNow. When I submit a form on the Service Catalog, I receive two emails that I do not want. "[External]Request (request number)has been opened on your behalf" and "[External]Your request (request number) has been approved". Is there a way to disable these emails?

Thanks

1 ACCEPTED SOLUTION

Add a condition to the filter: Item is not sysid (of the catalog item you want to exclude).




find_real_file.png



Regards,


Niklas


View solution in original post

7 REPLIES 7

For the 'Request Opened on Behalf' notification, the sc_request is the source table.   The catalog item is not available on this table, correct?     It's only available on the sc_req_item table.   And given it's based on a request insert/update, changing the notification to source from sc_req_item may not fly.   This is what worked for me in the advanced script:



var gr = new GlideRecord('sc_req_item');


gr.addQuery('request',current.sys_id);   // current is the sc_request


gr.addQuery('cat_item','<a catalog item sys_id>'); // perhaps set to a sys_property


gr.query();


if (gr.next()) {


    answer=false;


} else {


    answer=true;


}


Michael,



The code you posted here help me solve a problem that was driving me crazy over here: Re: Disabling Certain Notifications from Workflow



Thank you!


Great.   I'm glad it worked out.