Email notification configuration on the Request table [sc_req_item]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
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.
Please suggest what should be the "when to send" condition for the customized notification to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @dassan
First I will suggest , just select catalog item under Condition like
If still you want to proceed with advanced condition, Give one equal to (instead of ==) sign and try ,
current.cat_item = '738f578783a8fe10f406e820ceaad3ac';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
Also please guide on what condition shall I try to check
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi
In Condition, You can try dot walking.
Approval for > Request Item > Catalog Item's sys_id [is] Your Catalog Item sys_id
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;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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