Hi I'm trying to add a saved search for Items with...
# suitescript
c
Hi I'm trying to add a saved search for Items with no sales transactions for a particular period. I tried with this method: http://www.netsuiterp.com/2018/09/search-for-items-with-no-sales.html. But I didn't get a satisfactory result. I hope advice from experienced consultant. thank you
c
What have you tried? What result did you get? How was that result unsatisfactory?
c
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
c
Compare the type values used by N/search for filtering item types to the values of the search.Type enum.
Untitled.js