Creating a User Event Connection Point
You can create user event scripts that use SuiteSignOn to support real-time integration between NetSuite and external applications. User event scripts execute at one of the following points:
-
When a read operation on a record takes place (Before Load).
-
When a record is submitted before changes are committed to the database (Before Submit).
-
When changes are committed to the database (After Submit).
Through SuiteSignOn, a user event script can notify an external application of record updates, passing each record ID as a URL parameter. The external application can then access NetSuite through SOAP web services calls, to acquire additional information about these records.
The external system's access to NetSuite is limited to the access available for the user who performed the action that caused user event script execution.
To make a user event script available for a SuiteSignOn connection point, you must create a JavaScript file, create a NetSuite script record, and deploy the script.
To create and deploy a SuiteSignOn user event script:
-
Create a
.js
file that uses SuiteScript API.For information about SuiteScript 2.0 API, see sso.generateSuiteSignOnToken(options).
For information about specifying values on the SuiteSignOn record, see Setting SuiteSignOn Basic Definitions.
-
Create a record for the script and deploy it in NetSuite. See SuiteScript 2.x Script Creation Process.
-
Define a user event connection point for your SuiteSignOn integration. See Defining SuiteSignOn Connection Points.
Related Topics
- SuiteScript 2.x User Event Script Type
- Defining Integration Variables for Connection Points
- Creating SuiteSignOn Records
- Comparing Subtab, Portlet, Suitelet and User Event Connection Points
- SuiteScript Overview
- Outbound Single Sign-on (SuiteSignOn)
- Setting Up SuiteSignOn Integration
- Creating a Custom Subtab Connection Point
- Creating a Portlet Connection Point
- Creating a Suitelet Connection Point