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.
entitystatus returns Null??
I'm getting an unexpected result in my SuiteScript. I'm trying to determine the entitystatus of a record, but no matter what I try I get null. This is a mandatory field, and I have verified that the record has a status.
A sample of the code:
currentRecord = nlapiGetNewRecord();
// Get the Lead Status
var clientId = currentRecord.getFieldValue('company');
//var currentStatus = lookupFieldValue('customer', clientId, 'entitystatus');
var currentStatus =nlapiLookupField( 'customer', clientId, 'entitystatus', true );
nlapiSendEmail(135550,135550,'Script Test','value: '+currentStatus,null,null);
I've tried this with a lookupFieldValue and nlapiLookupField.
Also I should mention this is a Server SuiteScript to run whenever a phonecall is made.