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.
"paypaltranid" is not available on the cashsale record?
I'm trying to get PayPal transaction ID and PayPal Status in Cash Sale afterSubmit trigger (server side SuiteScript). For some reason getFieldValue() returns null for both of them, while I can clearly see in the UI that they are definitely not nulls. Am I missing something?
function afterSaveCashSale(type)
{
/* process new Cash Sales only */
if (type.toLowerCase() != 'create') return;
var logSubject = '';
var logDetails = '';
try
{
/* check that record type is cashsale */
var newRec = nlapiGetNewRecord();
var recType = newRec.getRecordType();
if (recType.toLowerCase() != 'cashsale')
{
logSubject = 'Incorrect script deployment';
logDetails = 'afterSaveCashSale is associated with record type: ' + recType.toString();
nlapiLogExecution('ERROR', logSubject, logDetails);