Adding the Plug-in Implementation
After creating the plug-in script file, upload and implement the file in NetSuite.
To add the plug-in implementation:
-
In NetSuite, go to Customization > Plug-ins > Plug-in Implementations > New.
NetSuite displays the Upload Plug-in Implementation page.
-
For the Script File, click the plus icon.
-
Click Choose File, then select the JavaScript file.
-
Click Save.
-
Click Create Plug-in Implementation.
-
On the Plug-in Implementation page, enter the following information:
Option
Description
Name
User-friendly name for the implementation.
This name appears in the plug-in implementation list.
ID
Internal ID for the implementation for use in scripting. If you do not provide an ID, NetSuite will provide one for you after you click Save. As a developer, when you write code that uses this implementation, you will reference the implementation using this ID.
Status
Current status for the implementation. Choose Testing to have the implementation accessible to the owner of the implementation. Choose Released to have the implementation accessible in a production environment
Log Level
Logging level you want for the script. Select Debug, Audit, Error, or Emergency. The log information appears on the Execution Log subtab for the implementation after you create it.
Go to Customization > Plug-ins > Plug-in Implementations, select your implementation, and then click the Execution Log subtab.
Execute As Role
Role that the script runs as. The Execute As Role field provides role-based granularity in terms of the permissions and restrictions of the executing script. The Current Role value indicates that the script executes with the permissions of the currently logged-in NetSuite user.
If you created a custom role, be sure to test using that role. You can then bundle the custom role to distribute it with the plug-in implementation.
Description
Optional description of the implementation.
Owner
User account that owns the implementation. Default is the name of the current user
Inactive
Indicates that the plug-in implementation does not run in the account. Inactivate a plug-in implementation, for example, to temporarily disable it for testing purposes.
-
On the Unhandled Errors subtab, select which individual(s) will be notified if script errors occur. By default the Notify Script Owner box is checked.
To enter multiple email addresses in the Notify Emails box, separate email addresses with a semi-colon.
-
Click Save.