Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
"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);