just and object with the addressSubrecord info, wh...
# suitescript
i
just and object with the addressSubrecord info, what Im doing here is, we have our customers with some child records,
family > bill To > Ship to
so what Im doing is setting the
bill to address
on all the
ship to
related records, whenever the
ship to
is edited, it grabs the
bill to
address (from the bill to customer record) and sets the address if it doesnt have any it just creates it, this works from the ship to, it updates/creates from the bill to, but when updating the bill to record, it only updates the ship to's, if the ship tos dont have any bill to address then I want to create it but I get this error 😞