Any one have any idea
# suitecommerce
g
Any one have any idea
k
what method are you using to set the values?
g
UpdateProfile method in commerce api methods
k
are you passing an array of internal id's for the multiselect field?
g
Yes
var customerUpdate={}; var custdata={custentity_preferred_equip:par_pref}; customerUpdate.customfields = custdata; customer.updateProfile(customerUpdate); Where par_pref is array of numbers like ("1", "2")
In this way we are passing the values to updateProfile method,but it is getting issue
@Steve Goldberg do we have any reference for setting the multiple values to dropdown in updateProfile method in account.model
k
do you need to pass the customer internal id? var customerUpdate = { internalid: parseInt(nlapiGetUser(), 10), }; var custdata={custentity_preferred_equip:par_pref}; customerUpdate.customfields = custdata; customer.updateProfile(customerUpdate); ModelsInit.customer.updateProfile(customerUpdate);
g
Same thing i have done,but i think iam getting issue in object formation
k
have you tried using the script debugger?
g
No..i will try