logo

NJP

21. Stop processing of an inbound action

Import · May 26, 2024 · article

You can stop processing of an inbound action using script.

Use case — Customer has a requirement that when an email is sent to ServiceNow from a particular email address, no case should be created if the Subject contains text ‘xxxx….This is an automated report’

Solution — You can create a new inbound action on the same table with conditions as per the subject line and other customer requirements. Make sure this inbound action runs before other inbound actions on the same table by changing the order.

In the script section, simply write below line.

event.state = “stop_processing”;

View original source

https://medium.com/@LearnITbyPrashant/21-stop-processing-of-an-inbound-action-f0989bb84bbc?source=rss-d005fc598f0a------2