is it possible to mass delete addresses?
# suitescript
m
is it possible to mass delete addresses?
g
Have you tried a CSV import with Overwrite Sublists checked?
I would test this on a sandbox or one record first before trying it on your whole account.
m
yeah, i decided to go via this option. it somewhat works when there are 2 addresses only. i asked in the csv import channel
when updating customer address i encounter an issue where there is more than 2 addresses. Ex: customer x has 2 addresses: add1, add2. I up an update using the override sublist as i want to remove add2. so my import only contains add1. after the import add2 is removed. this is perfect, however, if i have add1, add2, add3 and i wish to remove add3, i only have add1 & add2 in my import file. however, in this instance, add1 & add2 are removed instead of add3. why is this happening?
that's what i said
m
I had a similar issue and ending up running it as two imports. Import 1 with the first address and overwrite sublists checked, and import 2 with any additional addresses and overwrite sublists unchecked
d
Hey, can't you just use one line per customer and just have extra columns for address 2,3,4… Using "Customer - Address 1 : …", "Customer - Address 2 : …" Can all go in the same import
Ideally use the correct column names to have the mapping happen automatically, but otherwise use this plus sign to add more than one address per row
m
That might work, I only tried with separate rows for each address and from memory when I did overwrite sublists the second row would overwrite the first
m
Thanks. I didn't realise that + existed.