ANS-0471 · SUITESCRIPT DEVELOPMENT
Do User Event Scripts Trigger for Records Created via NetSuite SSP Services?
User event scripts are triggered when records are created via NetSuite SSP services.
Short answer
Yes, user event scripts are triggered when records are created from a service within a NetSuite SuiteScript Portlet (SSP) application. This behavior is consistent with other record creation processes. Ensure the SSP service successfully executes the record submission, utilizing the SuiteScript 2.x record.save() function.
Scenario
Organizations leveraging NetSuite SuiteScript Portlet (SSP) applications frequently create records programmatically through server-side services. A common question is whether user event scripts, designed to automate processes upon record creation or update, will execute in these specific scenarios. Clarifying this interaction is crucial for ensuring data integrity and process automation.
Solution
User event scripts are indeed triggered when records are created from a service within a NetSuite SuiteScript Portlet (SSP) application, behaving consistently with other record creation types. To ensure proper execution of associated user event scripts, administrators and developers must verify that the SSP service successfully performs the record submission. This typically involves using the current SuiteScript 2.x API for saving records, such as:n
nrecord.save()nIf user event scripts are not observed to be running, confirm that the service's record submission logic is correctly implemented and executed.
Expert NetSuite Support
Need help with this NetSuite issue?
SuiteScript Development consulting and configuration support
