I have a list of items +-3000 We have a new subsid...
# suitescript
s
I have a list of items +-3000 We have a new subsidiary. I want to add the subsidiary to the items Is there's a trick to do it ?
m
mass update?
s
let me try
That's what I thought. Update Subsidiary is not available with mass update
d
csv import, hands down
you'll need to set the existing subsidiary(ies) plus the new subsidiary (so need to export the current selections) i.e. the item currently has a value for subsidiary of
1|3|4
and you want to add subsidiary
6
, the value you need to import is
1|3|4|6
βœ… 1
s
ok
I will give it a try
d
good luck, let us know
s
It did not work There's a problem with the Form
I'm looking for a suitescript script
m
then do it, get a map reduce load a search and update the subsidiaries
d
what's the problem with the form? is the subsidiary field hidden/disabled/unavailable?
s
I have the map reduce Ritem.setValue({fieldId: 'subsidiary',value: '7,9'}); doesn't work i tried without '' Same result
The CSV import return 61 is an invalid custom form ??? I tried the standard one, also not working
But as I said, I prefer to do it with a script, because I have more control
πŸ€·β€β™‚οΈ 1
m
it’s an array not a string, do [7,9]
☝️ 1
πŸ‘ 1
d
FWIW, the custom form error is because you need to import different item types separately (inv, non-inv, service, *etc). If this isn't a one off, investing the time into setting up a M/R is def. the smart thing to do
πŸ‘ 1
netsuite 1
s
BTW Martin thanks a lot. It's working perfectly Thanks David too
πŸ‘ 1