{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":588,"path":"api-reference/scripts/c_AbortDatabaseActionBusRule.md","title":"Abort a database action","bundle":null,"doc_type":null,"release":"australia","body":"\n# Abort a database action\n\nYou can use a before business rule script to cancel or abort the current database action using the current.setAbortAction\\(true\\) method.\n\nIf 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.\n\n**Parent Topic:**[Business rule use cases](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/scripts/useful-business-rules.md)\n\n**Related topics**  \n\n\n[GlideRecord - setAbortAction\\(Boolean b\\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/c_GlideRecordAPI.md)\n\n[Scoped GlideRecord - setAbortAction\\(Boolean b\\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/c_GlideRecordScopedAPI.md)\n\n"}}