Monday, January 14, 2019

How to return a specific result on an Item Saved Search the Location Available with Group Summary Type via Script

Question: How to return a specific result on an Item Saved Search the Location Available with Group Summary Type via Script

Answer:

The code snippet below shows how to access a specific result for the Location Available with Summary Type Sum:

var srch = nlapiSearchRecord('inventoryitem', '[SAVED_SEARCH_ID]');

var res = srch[INDEX].getValue('locationquantityavailable', null, 'sum'); 

var foo = 0;

No comments:

Post a Comment