Referencing the Custom Module in the User Event Script

After you create the custom module script file, upload it to your NetSuite File Cabinet so other scripts can load it.

To upload the script file:

  1. In the NetSuite UI, go to Documents > File > SuiteScripts.

  2. In the left pane, select the SuiteScripts folder, and click Add File.

  3. Follow the prompts to find the phoneCall.js file in your local environment and upload it to the SuiteScripts folder.

Even after you upload the file, you can edit it in the File Cabinet if you need to. For more information, see Editing Files in the File Cabinet.

Next, update the user event script so it can reference the custom module. You don't need to create a script record or script deployment record for a custom module. Unlike an entry point script, a custom module becomes available when you upload it and reference it from a deployed script.

You can update the user event script in either of the following ways:

Related Topics

General Notices