Since then we have formulated an even easier and cleaner solution, using a simple http POST request.
Scenario: You have a Contact Us page on your company website and you would like to easily connect it to your Netsuite account. Note : this also works with Infusionsoft generated forms.
Step 1: Create an Online Customer Form in Netsuite.
Add fields you want to capture in the Fields tab. Ex: First Name, Last Name, Email, Company, Comments.
Custom fields are supported; make sure to remember their Internal ID for Step 3.
Setup the form Workflow normally as per your requirements - the most important information is the Redirect to URL, which is the page where the user will land once form is submitted:
Save the form.
Step 2: Go to the External tab on your form and retrieve the Publishable Form URL:
Copy the Publishable Form URL (here, https://forms.na1....)
Step 3: Modify your Contact Us page or your Infusionsoft form to POST to the Netsuite form :
Here is a sample of a very basic Contact us page :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERP Guru - Contact Us example</title>
<h2>Send us your comments!</h2>
<form id="myform" action="https://forms.na1.netsuite.com/app/site/crm/externalleadpage.nl?compid=TSTDRV1024319&formid=14&h=dc4352373aa13c3112da" method="post">
First name : <input name="firstname" type="text"><br>
Last name : <input name="lastname" type="text"><br>
Email : <input name="email" type="email"><br>
Company name : <input name="companyname" type="text"><br>
Your comments : <textarea name="custentity_customcomments"></textarea><br>
<input type="hidden" name="subsidiary" value="1">
<input type="submit" value="submit">
When adjusting your page, it’s important to use your fields Internal ID. For example, the Internal ID of the First Name field in Netsuite is firstname. Thus, we use: <input name="firstname" type="text">
As Custom Comments is a custom field in Netsuite, we have to use its Internal ID: custentity_customcomments
Note: Subsidiary field is mandatory for NetSuite OneWorld accounts. The best is to hardcode it in your page, using a hidden field:
<input type="hidden" name="subsidiary" value="1"> (1 is the subsidiary Internal ID)
When the form is submitted, the information will be captured in NetSuite and user will land on the Online form Redirect To URL.
Authors : Felix Guinet and Guillaume Bouchard Lafond