Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
Set contact role using server script
Hey Guys,
I'm attempting to set the role of a contact using server script but i don't seem to be able to do so?
I am using a suitelet which is being passed certain parameters for contacts and need to create the contacts and assign them a role. I can create the contacts without an issue but i don't seem to be able to set the role.
Below is the script.
var impcontact = nlapiCreateRecord('contact')
impcontact.setFieldValue('company',leadid)
impcontact.setFieldValue('subsidiary',lead.getFieldValue('subsidiary'))
impcontact.setFieldValue('firstname',accountsfirstname)
impcontact.setFieldValue('lastname',accountslastname)
impcontact.setFieldValue('email',accountsemail)
impcontact.setFieldValue('role',2)//Primary Implementation Lead