Friday, September 21, 2018

Dynamically get the Price Levels using SuiteScript

Dynamically get all available price levels in an account without manually going to Setup > Accounting > Accounting Lists > Price Levels.

Sample Code Snippet:

var search = nlapiSearchRecord('pricelevel',null,null,null);
for(var i in search)
{
var internalId = search[i].getId();
var recType = search[i].getRecordType();
var description = nlapiLookupField(recType,internalId,'name');
}

 

No comments:

Post a Comment