Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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