Hi,
We are trying to create a C# app to create a new lead, and the corresponding contact record. We have the customer record being created successfully, but are running into some "typing" issues with the contact record relative to their documentation (we were referencing their online documentation for a while, then found the PDF, and realized the HTML docs were a bit out of date).
Anyway, we are creating a contact record like this:
// create a contact record
Contact contact = new Contact();
contact.comments = "comments";
contact.email = "jasen@hotmail.com";
contact.firstName = "test";
contact.lastName = "contact";
contact.phone = "4 44 444444";
contact.unsubscribe = false;
contact.unsubscribeSpecified = true;
But can't figure out the next steps to actually save the record as a linked record to the company record we just created. Based on what little documentation and samples there were, we would think it looks something like this:
CustomerContactList contactList = new CustomerContactList();
contactList.contact = new CustomerContact();
contactList.contact
Contact[] contacts = new Contact[1];
contacts[0] = contact;
contactList.contact = contacts;
cust.contactList = contactList;
WriteResponse response2 = service.add(cust);
But alas, this doesn't work as CustomerContactList expects CustomerContact records, not the standard Contact record. I have no clue what the CustomerContact record is, but it doesn't seem to contain anything. Any help on saving a contact to Netsuite and relating it to a just-created company would be appreciated.
Thanks!