Monday, December 17, 2018

Dynamically get transaction's specific record type

There are implementations wherein a transaction record has to be loaded with the use on nlapiLoadRecord. The record type must be determined to load the transaction. Since a transaction's record type is searchable, you may use of one the Search APIs. The simplest way to retrieve a transaction's record type is by using nlapiLookupField. This snippet demonstrates how to achieve this:

var transactionType = nlapiLookupField('transaction', IntID, 'type');

No comments:

Post a Comment