Scheduled Script Best Practices

The following are best practices for scheduled scripts. Genaral guidelines: You should set your scheduled scripts to run during the hours of 2 AM to 6 AM PST. Scripts set to run during the hours of 6 AM to 6 PM PST may not run as quickly due to high database activity. The number of Not… Continue reading Scheduled Script Best Practices

Optimizing SuiteScript Performance

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

Select a Sublist Line

We can use record.selectLine(options) to select a sublist line. Method Description Selects an existing line in a sublist. (dynamic mode only) When working in standard mode, set a sublist field using Record.setSublistValue(options). Returns record.Record Supported Script Types Client and server scripts Governance None Module N/record Module Sibling Object Members Record Object Members Parameters Parameter Type… Continue reading Select a Sublist Line

How to Get Sublist Text in SuiteScript

We can use record.getSublistText(options) to get the sublist Text. Method Description Returns the value of a sublist field in a text representation. Gets a string value with a “%” for rate and ratehighprecision fields. Returns string, For multiselect fields, returns an array. Supported Script Types Client and server scripts. Limitations exist on how this method… Continue reading How to Get Sublist Text in SuiteScript

How to Get Sublist Value in SuiteScript

We can use record.getSublistValue(options) to get the sublist value. Method Description Returns the value of a sublist field. Gets a numeric value for rate and ratehighprecision fields. Returns number | Date | string | array | boolean Supported Script Types Client and server scripts Governance None Module N/record Module Sibling Object Members Record Object Members… Continue reading How to Get Sublist Value in SuiteScript