SuiteScript: Adding and Removing IDs from a Multi-Select Field in NetSuite

To add or remove IDs from a multi-select field in NetSuite using SuiteScript, you can manipulate the multi-select field using its internal ID and the respective value(s) you want to add or remove. Here’s how you can approach both tasks: 1. Add ID to Multi-Select Field: You would first retrieve the existing values from the… Continue reading SuiteScript: Adding and Removing IDs from a Multi-Select Field in NetSuite

Setting null value to multi-select field.

Code Used : nlapiSetFieldValues(‘custbody11’,”); This code looks correct at first look but in actual Multiselect field need array for setting data So if you want to add field you have to use nlapiSetFieldValues(‘custbody11’,[1,2,3,4]); Same way if you add array without any value will solve the issue. So use nlapiSetFieldValues(‘custbody11’,[]); to remove the all values.