Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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.