use suitescript 2.1 to create a new contact and set the name to John Smith
function createContact(){ var contact = record.create({ type: record.Type.CONTACT, isDynamic: true }); contact.setValue({ fieldId: 'firstname', value: 'john' }); contact.setValue({ fieldId: 'lastname', value: 'smith' }); contact.save(); }