Email notification configuration on the Request table [sc_req_item]

dassan
Tera Contributor

I am looking to configure an email [customized] on the request item table [sc_req_item] for a specific catalog item. 

However when the request is raised for the specific catalog item, the OOTB notification gets trigger. [ Approval Request] . 

the email notification [ customized] condition I gave as shown below, but it does not work. 

dassan_0-1793963024458.png

I gave the sys_id of the catalog item as when condition but did not help out. 

The OOTB email notification - Approval Request condition is given as below. 

dassan_1-1793963109094.png

 

Please suggest what should be the "when to send" condition for the customized notification to work. 

 

 

6 REPLIES 6

Tanushree Maiti
Tera Patron

Hi @dassan 

 

First I will suggest , just select catalog item under Condition like

TanushreeMaiti_0-1793964148024.png

 

If still you want to proceed with advanced condition, Give one equal to (instead of ==) sign and try ,

current.cat_item = '738f578783a8fe10f406e820ceaad3ac';

 

 

 

Thank you Tanushree for your inputs!

I tried with the condition by giving a single (=) sign but it did not work out. 

Please suggest if this could be a reason as the OOTB one is on sysapproval table.  and the customized one on sc_req_item table. 

dassan_0-1793965240091.png

 

Also please guide on what condition shall I try to check 

dassan_1-1793965423590.png

 

Hi  

 

In Condition, You can try dot walking.

Approval for > Request Item > Catalog Item's sys_id [is] Your Catalog Item sys_id

 

TanushreeMaiti_0-1793969292303.png

 

Or 

 

Use advance condition script

 

answer = findCatalog();

function findCatalog() {
var gr = new GlideRecord('sc_req_item');
if (gr.get(current.sysapproval)) {
if (gr.cat_item == '<Your Catalog Item sys_id Here>') {
return true;
}
}
return false;
}

Hello

Thank you so much for replying and providing the script. 

tried with it but is not working, also the condition section does not see the Available for field 

dassan_0-1793972504314.png