Generation

generate functionThu, 17 Nov 2022

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(); }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant