A new Customer Record needs to be created individually in NetSuite. A fast and easy way to do so is using the NetSuite Suite Script Debugger. It makes easier to troubleshoot and adapt later Suite Script developments on the account.
- Navigate to Customization > Scripting > Script Debugger
- Select SuiteScript 2.0 as the API Version
Note: Make sure that the mandatory fields in the Customer Record are set and filled as needed.
require(['N/record'])
var record = require('N/record')
var customer = record.create({
type: record.Type.CUSTOMER,
isDynamic: true
});
customer.setValue('isperson', 'T');
customer.setValue('firstname', 'Customer First Name');
customer.setValue('lastname', 'Customer Last Name');
customer.setValue('subsidiary', '1');
customer.setValue('email', 'customer.email@netsuite.com');
var customerID = customer.save();
log.debug('customerID = ' + customerID);