Suitelets and UI Object Best Practices

The following are best practices for Suitelet development using UI objects and custom UI. General Suitelets are ideal for generating NetSuite pages (forms, lists), returning data (XML, text), and redirecting requests.Limit the number of UI objects on a page (< 100 rows for sublists, < 100 options for on demand select fields, < 200 rows… Continue reading Suitelets and UI Object Best Practices

Setting the class column in item sub list as mandatory from Company preferences through script

User may set the Class Field to mandatory by ticking the Make Classes Mandatory field on Setup > Accounting > Accounting Preferences > General tab. This can also be done via SuiteScript. var accountingPref = config.load({‌type: config.Type.ACCOUNTING_PREFERENCES}); accountingPref.setValue({‌fieldId: ‘CLASSMANDATORY’,value: true}); accountingPref.save();