Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Customer / Contact association problem
I am new to working with the SuiteTalk platform and attempting to add and associate customers and contacts from a system on my network. Everything works great and indicates success except that the contact is not associated with the customer when the code execution completes. Below the code demonstrates the convention I am using to accomplish this:
1. new Customer is created and name and status are assigned.
2. Customer instance is added to NetSuite using NetSuiteService.add(Record) method.SUCCESS
3. new Contact is created and appropriate values are assigned.
4. Contact instance is added to NS using add method.SUCCESS
5. new Customer is created and the internalId is set from the response returned in step 2.