Discussions
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.