Friday, July 12, 2019

Clear the List/Record Field using SuiteScript

Example:
'custbody_ field' is a custom transaction body field of List/Record type applied to Sales Order

Clearing of 'custbody_field' can be done using two ways:

var recTrans = nalpiLoadRecord ('salesorder', recID);

  1. User event script
    • recTrans.setFieldValue( 'custrecord_association', null);
    • recTrans.setFieldValue( 'custrecord_association', '');
  2. Client side script
    • nlapiSetFieldValue('custrecord_association', '');

No comments:

Post a Comment