I'm working on a registration form on my website, that will create new contacts with NetSuite on submission. I'm not sure how to handle the "Your organization" form field though
We're using NetSuite so that all individuals are entered as Contacts, and all organizations are entered as Leads, Propects or Customers. This means that any individual that comes to our website and registers with the site, or requests a demo CD or other form based action, has to be stored within NetSuite.
Now, the personal details (name, email, etc) for this individual are entered as Contact details, no problem. However, some forms on my site also ask for details of the organization they work for. My question is: How do I enter that organization information into NetSuite?
Here's my current though... tell me if I've over complicating things:
1) first thing to do is check to see if a company exists matching exactly the organization entered into the form (i.e. 'ABC Corp' already exists)
- how do I do this via ODBC? I see one table for Customers and one for Companies.. both my current test coompanies (one lead, one customer) appear in both these tables. How to I know which table to look at? What in that table tells me if this company is a lead, propsect or customer?
2) if it does, get the ID of that company and assign it to the new contact
- how? Is there any C# code example for this? I haven't found one as yet.
3) if not, create a new company (as a Lead) and then assign to the new contact
- again, how? I've found no C# examples in the documentation for adding companies (either as lead, prospect or customer)
Kevin