first of all, I created a new search that return all assembly and inventory items
const itemSearch = search.create({
type: 'item',
filters: [{
name: 'type',
operator: 'anyof',
values: [
search.Type.ASSEMBLY_ITEM,
search.Type.INVENTORY_ITEM
]
}],
columns: [
search.createColumn({
name: 'internalid'
})
]
});
but it returns no result