Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Deleting addresses
I'm trying to implement code to delete a customer address. I've been able to remove the address from the customer, but the (now orphaned) address record is left behind.
I tried doing record.removeSublistSubrecord but that didn't work. No error, but didn't remove the address subrecord.
I thought maybe I have to save the customer record afterward. That didn't work either. Again, no errors, but address was not removed.
I then added a call to remove that sublist line. That removed the sublist line - the address no longer shows under that customer. But the address record itself is still there - record.load retrieves it.
0