How to stop sysapproval_approver push notification for particular catalog item

Ravi Gupta1
Tera Expert

Hi,

By default ServiceNow send push notification for all approval. I don't want to send approval push notification for particular catalog item.

Please suggest how this can be done.

 

Thanks

Ravi Gupta

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Ravi Gupta1 

Did you identify the push notification for approval table?
It should be one of these, check and add the correct advanced notification condition using script

AnkurBawiskar_1-1747198418981.png

 

var gr = new GlideRecord("sc_req_item");
gr.addQuery("sys_id", current.sysapproval);
gr.addQuery("cat_item.name", "Your Item Name Here");
gr.query();
answer = !gr.hasNext();

AnkurBawiskar_0-1747198372337.png

 

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

View solution in original post

6 REPLIES 6

Hi @Ankur Bawiskar 

Thank you for your quick and correct solution.

 

Regards,

Ravi

 

_ukasz Rybicki
Giga Guru

Summary

To suppress push notifications for a specific catalog item in ServiceNow, update the existing Approval Request notification’s advanced condition to run a short GlideRecord query against sc_req_item, checking if the current approval’s catalog item matches the excluded item. If it does, return false to prevent the push; otherwise, return true. This solution uses only OOTB configuration and minimal script, and can be tested by submitting requests with and without the excluded item.

Problem Identification

ServiceNow sends push notifications for every approval by default, driven by a notification record on sysapproval_approver (Ravi’s question) (Ravi Gupta, thread) ⟦1⟧.

Proposed Solution

Use the notification’s Advanced condition to run:

var gr = new GlideRecord('sc_req_item');
gr.addQuery('sys_id', current.sysapproval);
gr.addQuery('cat_item', 'YOUR_CATALOG_ITEM_SYS_ID');
gr.query();
// Suppress push if this is the excluded catalog item
answer = !gr.hasNext();

This returns false only for approvals tied to the specified catalog item, preventing the push ⟦Ankur Bawiskar’s reply⟧ ⟦2⟧.

Detailed Steps

  1. Locate the Push Notification

    • Navigate to System Notification > Email > Notifications.

    • Filter Channel = Push, Table = sysapproval_approver.

    • Open the Approval Request record ⟦Maik Skoddow’s reply⟧ ⟦3⟧.

  2. Configure Advanced Condition

    • In the When to send tab, switch to Advanced view.

    • Paste the script above, replacing 'YOUR_CATALOG_ITEM_SYS_ID' with the target item’s sys_id.

  3. Save and Test

    • Submit a request for the excluded catalog item: confirm no push arrives.

    • Submit any other item: confirm push does arrive.

No-Code Alternative

Use the simple condition builder:

[Requested Item > Catalog Item] [is not] [Your Catalog Item]

This may work if the Requested Item dot-walk is available in the push notification form ⟦Maik Skoddow’s reply⟧ ⟦3⟧.

Testing

  • Excluded item: no push notification.

  • Other items: push notification delivered with standard Approve/Reject options.


Sources

  1. How to stop sysapproval_approver push notification for particular catalog item – ServiceNow Community, Ravi’s original question and context. https://www.servicenow.com/community/developer-forum/how-to-stop-sysapproval-approver-push-notificat...

  2. Ankur Bawiskar’s reply with advanced condition script – ServiceNow Community, shows GlideRecord example for sc_req_item. https://www.servicenow.com/community/developer-forum/how-to-stop-sysapproval-approver-push-notificat...

  3. Maik Skoddow’s no-code condition – ServiceNow Community, simple condition builder example. https://www.servicenow.com/community/developer-forum/how-to-stop-sysapproval-approver-push-notificat...

  4. How to setup Conditions on the sysapproval_approver email notification – ServiceNow Community, advanced condition scripting overview. https://www.servicenow.com/community/developer-forum/how-to-setup-conditions-on-the-sysapproval-appr...

  5. Advanced condition for email notifications – ServiceNow Documentation, general advanced condition reference. https://docs.servicenow.com/bundle/sandiego-servicenow-platform/page/administer/notification/concept...

  6. Notifications Advanced Conditions Script – ServiceNow Community, broader examples of advanced conditions. https://www.servicenow.com/community/developer-forum/notifications-advanced-conditions-script/m-p/19...

  7. ServiceNow Email Notification What It Will Contain Tab – Snowycode blog, explains Advanced view setup. https://blog.snowycode.com/post/how-to-create-an-email-notification-in-servicenow

  8. Catalog specific email notification – Reddit r/servicenow, discussion of filtering notifications by catalog item. https://www.reddit.com/r/servicenow/comments/16zvrko/catalog_specific_email_notification/

  9. Advanced conditions for email notifications – ServiceNow Documentation, Yokohama release. https://docs.servicenow.com/bundle/yokohama-platform-administration/page/administer/notification/con...

  10. How To Create Email Notifications In ServiceNow – YouTube tutorial covering notification configuration. https://www.youtube.com/watch?v=-cvOz4rlGdk

Please review and let me know if this fully addresses your requirement!