Is there a way to create a new address record and ...
# suitescript
y
Is there a way to create a new address record and tie that to a customer and sales order, the same way it does in the UI when you click to add a new shipping address on an SO? I.e. without just editing/ overriding the old shipping address, and have that address show up under the customer's addressbook list as well
b
edit the customer to add a new address to the addressbook
save it, then get the id of the new addressbook line
use that new id to set the shipping address select
y
Awesome thank you ☺️ I actually only just managed to get that working somehow, it seems I was doing it the wrong way earlier (trying to add the address to the SO first, then the customer, rather than adding it to the customer first and then tying it to the SO from the shipaddresslist field) - appreciate the help! Good to know that's the right direction 🙂