Notification on Approval Table

Abhilasha G T
Tera Contributor

Hi Team,

I need to configure a Notification , requirement is like below,

Table - Approval (sysapproval_approver)

 

When to send > 

 

source Table is > sc_req_item

state is > Requested

catalogs contains > service catalog

 

who will Receive > Approver

 

how to configure this.

 

Regards,

Abhilasha G T

 

7 REPLIES 7

hi @Ankur Bawiskar ,

Thanks for your reply ,

Facing difficulty to cater below requirement in,

When to send,

catalogs contain > service catalog

finally achieved this, by using below script ,

answer = false;
var ritmGR = new GlideRecord("sc_req_item");
if (ritmGR.get(current.document_id)){
var catalogs = ritmGR.cat_item.sc_catalogs.getValue();
// Don't hardcode the sys_id , create a system proprety and store the value and use gs.getProperty

 

answer = catalogs && catalogs.indexOf("e0d08b13c3330100c8b837659bba8fb4") >= 0 ;
}

@Abhilasha G T 

that's what my script was doing.

It was querying RITM with that encoded Query.

The script I shared will also work fine.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Abhilasha G T 

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader