Discussions
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Join us
"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);