ANS-1084 · SUITESCRIPT DEVELOPMENT

What Event Type is Triggered During an Inline Delete in NetSuite?

NetSuite's scripting framework consistently identifies 'delete' as the event type for inline record deletions.

Short answer

When an inline deletion occurs on a NetSuite record, the system consistently registers the event type as 'delete'. This holds true for both 'before submit' and 'after submit' script contexts, allowing developers to reliably trigger specific logic or validations during the deletion process.

Scenario

Developers often need to implement custom logic that triggers specifically when a record is deleted in NetSuite. A common question arises regarding the precise event type that is fired during an 'inline delete' operation. Understanding this event type is critical for correctly configuring User Event Scripts or Workflows to respond to record deletions.

Solution

To identify an inline deletion event in NetSuite, developers can check the event type within their User Event Scripts. The system consistently registers the event type as 'delete' for such operations. This applies uniformly to both the beforeSubmit and afterSubmit execution contexts, allowing for reliable implementation of custom logic or validations during the deletion process.

Expert NetSuite Support

Need help with this NetSuite issue?

SuiteScript Development consulting and configuration support

Talk to a consultant