Extract Search Results via SuiteScript with the Ordering Similar to User Interface

To extract the different Kit/Package Item records using Suite Script with the same order as the one in the User Interface when viewing the record.

  • Define the filters.
  • Define the internal id as one of the results columns.

var search = search.create({
	type: item,
	filters:, //define filters here
	columns: [{
		name: internalid,
		sort: search.Sort.ASC
	}], //define other columns here
})

var result = search.run();

Leave a comment

Your email address will not be published. Required fields are marked *