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();