Thursday, October 11, 2018

Search for the Shipping Cost in a Sales Order using nlapiLookupField

 

The Field ID of Shipping Cost in a Sales Order record is "shippingcost". However, when retrieving its value using nlapiLookupField, the Field ID that should be used is "shippingamount" instead. nlapiLookupField is a search API. The field internal id "shippingamount" is listed under Search Columns. Sample API call below:

var shipCost = nlapiLookupField('salesorder', salesorderid, 'shippingamount');

No comments:

Post a Comment