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.
Unable to call Suitelet from addButton Userevent?
I am trying to load and email document when a button is clicked.Iam getting 'id' missing error. I am sure that I am not connecting them properly. Can anyone please suggest where am I doing wrong?
Suitelet:
function Email_SIForm(request, response)
{
var SOid = nlapiGetRecordId();
nlapiLogExecution('DEBUG', 'SOid', SOid);
var sorecrd = nlapiLoadRecord('salesorder',SOid);
var SI = sorecrd.getFieldValue('custbody_dwr_salesorder_si' );
nlapiLogExecution('DEBUG', 'SI', SI);
var file = nlapiLoadFile(SI);
nlapiLogExecution('DEBUG', 'file', file);
var newEmail = nlapiSendEmail(3, 'sru@test.com.au', 'Sample email and attachment', 'Please see the attached file', null, null, null, file);
}
UserEvent:
function beforeload_MojEmailFile(type, form, request){