Title
#suitescript
erictgrubaugh

erictgrubaugh

10/31/2016, 8:28 PM
require(['N/search', 'N/record'],

function(search, record) {
 
		var itemSearch = search.create({
			type: search.Type.ITEM,
			columns: [
			  {name: 'internalid'},
			  {name: 'type'}
		  ]
		});
		var searchResults = itemSearch.run();
		if (searchResults) {
			console.log(searchResults);
			searchResults.each(function(result) {
				console.log(result);
				return true;
			});
		}
    })