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.
Script having problems with negative value ID
Hi,
I have written a script that automatically creates a calendar event from an opportunity record. The script creates an event for the first sales meeting on the opportunity.
The script is:
//get info from record that i need
var recordCreated = nlapiCreateRecord('calendarevent');
var user = nlapiGetUser();
var apptdate = nlapiGetFieldValue('custbody_apptdate');
var entity = nlapiGetFieldValue('entity');
var appttime = nlapiGetFieldValue('custbody_appttime');
var apptendtime = nlapiGetFieldValue('custbody_apptendtime');
var srep = nlapiGetFieldValue('salesrep');
//set field values on new calendar event
recordCreated.setFieldValue('title', 'Lead');
recordCreated.setFieldValue('startdate', apptdate);
recordCreated.setFieldValue('accesslevel', 'PUBLIC');
recordCreated.setFieldValue('customform', 18);
recordCreated.setFieldValue('organizer', user);
recordCreated.setFieldValue('timedevent', 'T');
recordCreated.setFieldValue('company', entity);