Abort a database action

concept australia Updated Mar 12, 2026 1 min read c_AbortDatabaseActionBusRule.md
Raw file servicenow.com

You can use a before business rule script to cancel or abort the current database action using the current.setAbortAction(true) method.

If the before business rule is executed during an insert action, and a condition in the script calls current.setAbortAction(true), the new record stored in current is not created in the database.

Parent Topic:Business rule use cases

Related topics

GlideRecord - setAbortAction(Boolean b)

Scoped GlideRecord - setAbortAction(Boolean b)

Search documentation
Search document titles and file paths on the australia branch