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.
Automatically Change Opportunity Status when Quote Status is Changed
I need to have the related opportunity's entity status change automatically when the related quote's status changes. I was told by NetSuite support that this is not possible via a workflow. I do have SuiteScript file that accomplishes this, but I need to limit this to only specific statuses and by sale type, which we have as a custom field.
Here is the SuiteScript file I have so far:
function userEventAfterSubmit(type)
{
var id = nlapiGetRecordId();
var record = nlapiLoadRecord('estimate',id);
var status = record.getFieldValue('entitystatus');
nlapiLogExecution('DEBUG', 'Estimate Status - CODE', status);
var opportunity = record.getFieldValue('opportunity');
nlapiLogExecution('DEBUG', 'Opportunity ID', opportunity);