Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Stop processing an inbound action

peg612
Kilo Expert

I have created an inbound action that is inside scope and I need it to stop processing after it runs. I have added "event.state="stop_processing";" and that normally works in global but it does not appear to be working in scope.


I checked the logs and found this:

org.mozilla.javascript.EcmaError: "event" is not defined.

Caused by error in Inbound Email Actions: 'Create HSC Incident' at line 30

27: }

28:

29: current.insert();

==> 30: event.state="stop_processing";

Has anybody seen an issue with stop processing in scope or know of another way to stop processing?

5 REPLIES 5

Annay Das
Tera Contributor