Not Able to Set Null value in Multiselect field in Netsuite ?

Hi All,

Some one from my blog follower asked one interesting question related to SuiteScript1.0 .
He was not able to deselect values from multiselect 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.

I notice previously
nlapiSetFieldValues('custbody11',''); was working fine and was not issue but now Netsuite updated the API and need array to set there.

Please let me know if you need any help.

Thanks
Abhi

Comments

Post a Comment

Thanks for you message, please join us on Facebook and Linkedin