Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
trying to use getValue() to get field in saved search results
HI
Im currently trying to resolve an issue where I cant get a value from a suitelet from a savedsearch within Netsuite.
var _searchId = 'customsearch_pm_item_record_loader'; //itemFilters.push(new nlobjSearchFilter('displayName',null, 'contains', _searchTerm )); // var rs = nlapiSearchRecord('item', _searchId, itemFilters,columns); for ( var i = 0; rs != null && i < rs.length; i++) { var rowObj = {}; rowObj.id = rs[i].getValue('internalid'); rowObj.custitem_dwr_co_dis = rs[i].getValue('custitem_dwr_co_dis'); rowObj.salesdescription = rs[i].getValue('salesdescription'); rowObj.displayName = rs[i].getValue('displayName'); rowObj.itemid = rs[i].getValue('itemid'); rowObj.unitPrice = rs[i].getValue('unitprice', 'pricing'); // unit price