There are certain changes you can make to your scripts to ensure the execute with performance in mind. This may be particularly true for custom scripts. You can see if there are custom scripts in your account at Customization > Scripting > Scripts. The following guidelines are suggested to optimize script performance, General Scripting Guidelines Save… Continue reading Optimizing SuiteScript Performance
Category: NS Customization
All articles / code related to Netsuite customization
Email communication is not present in transactions for a custom role.
For a custom role, the Email icon is not shown in any transaction record. To enable this, we need to enable Track messages in the Lists subtab of the custom role record.
Script to create custom record as a table in View context.
Cannot add filters or columns in the Print Transactions
When trying to add filters or columns on the Print transactions page, NetSuite throws an error. To add those, we need to add the permission of Find Transaction in the Transactions subtab of the custom role.
Skipped Actions in a workflow.
When SuiteFlow skips an action, the action may not be supported for the server trigger on which the workflow entered the state. The following screenshot shows a record that entered a state on a Before Record Load trigger and consequently, the Send Email action was skipped: You can view the options for the Send Email… Continue reading Skipped Actions in a workflow.
CSV Import Process with Server SuiteScripts and User Event Scripts in NetSuite
To activate the script during CSV import, it has been clarified that the checkbox RUN SERVER SUITESCRIPT AND TRIGGER WORKFLOWS must be checked for recognition. When we check the option “RUN SERVER SUITESCRIPT AND TRIGGER WORKFLOWS” during a CSV import in NetSuite, the process typically follows these steps: Reading and Processing CSV Data: NetSuite reads… Continue reading CSV Import Process with Server SuiteScripts and User Event Scripts in NetSuite
Points to be noted before deploying Workflow using SDF
We have different methods to deploy a workflow from sandbox to production. The methods can be manual creation, Suite Bundler, Copy to account or SDF method. While deploying a workflow to production, keep note of the following points. If the workflow has dependency fields that are created on the sandbox and not yet in the… Continue reading Points to be noted before deploying Workflow using SDF
Email recipients chunking to not exceed the limit 10
When implementing new functionalities to send emails, we have to be careful about the NetSuite limitation. A maximum of 10 recipients (recipient + cc + bcc) is only allowed. So to tackle this issue, we have to chunk the recipients before sending the emails, such that if we got 5 recipients, 3 cc and 4… Continue reading Email recipients chunking to not exceed the limit 10
Defaulting Item Line Field to Blank in Non-User Interface Contexts: User Event Script Before Submit
Setting Default Blank Value for Item Line Field in Sales Order across Non-User Interface Contexts Using User Event Script Before Load. In scenarios where a Sales Order (SO) is generated outside the user interface, the designated line field will automatically default to a null value.
Throwing a User-Friendly Error Message in User Event Script with Limited Details Display
When raising an error message within a user event script, employ the following method to exclusively display the custom error message without revealing additional error details: