Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
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