Enabling SuiteScript Features in NetSuite

Enable SuiteScript in NetSuite to configure scripting environment and roles.

·2 min read·View Oracle Docs

To use SuiteScript in NetSuite, it's essential to enable the appropriate SuiteScript features. This process, managed by an Administrator, ensures your NetSuite environment is prepared for development.

How Do You Enable SuiteScript in NetSuite?

To enable SuiteScript, follow these steps:

  1. Navigate to Setup > Company > Enable Features.
  2. Select the SuiteCloud subtab.
  3. Check the boxes for Client SuiteScript or Server SuiteScript (or both) depending on your needs.
  4. Click Save.

Note: Enabling Client SuiteScript activates the Custom Code subtab on entry and transaction forms. Here, you can associate client scripts with particular forms. For details, see the section on associating custom code with forms.

Further Configuration After Enabling SuiteScript

After enabling SuiteScript, additional configuration is required:

  • Roles and Permissions: Define access levels in NetSuite.
  • Internal IDs: Enable the option to display internal record and field IDs, important for scripting parameters.
  • Development Environment: Set up your development tools, including the SuiteCloud IDE plugin.

For a complete environment setup, see the SuiteScript 2.x Hello World tutorial for an implementation example.

Who This Affects

  • Administrators: Need to enable SuiteScript features and configure roles.
  • Developers: Benefit from a properly configured environment for script deployment.

Key Takeaways

  • Administrators are required to enable SuiteScript in the NetSuite account settings.
  • SuiteScript can be enabled for client or server usage, dependent on project needs.
  • Properly enabling ensures developers have the necessary components available for scripting tasks.

Frequently Asked Questions (4)

Do I need to enable a feature flag to use SuiteScript in NetSuite?
Yes, you need to enable SuiteScript features in the SuiteCloud settings by checking the boxes for Client SuiteScript and/or Server SuiteScript as necessary.
How can I associate a client script with a form in NetSuite?
Once Client SuiteScript is enabled, go to the Custom Code subtab on the form record, choose your script file in the Script File field, and specify the functions to execute in the event type fields.
What permissions are required to edit scripts in the Custom Code subtab?
Users need the Custom Entry Forms or Custom Transaction Forms permission with at least Edit level access to the SuiteScript permission to edit scripts in the Custom Code subtab.
What happens if the 'Hide in SuiteBundle' preference is checked for a script file?
If 'Hide in SuiteBundle' is checked, it can prevent the scripts from being used effectively in NetSuite.
Source: Enabling SuiteScript Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in SuiteScript

View all SuiteScript articles →