Hi, I'm wondering... Is it possible to use N/searc...
# suitescript
i
Hi, I'm wondering... Is it possible to use N/search with an existing saved search and add a filter to load a single record (using it's ID) Tried
Copy code
var s = search.load({id:id});
s.filters.push()// Tried several things in here, but it seems ID and entityID are not welcome as filters
Am I missing something obvious?
Doing the same with create Search works with other columns but not with ID.
n
Copy code
var filters = [];
            filters.push(["internalid","anyof","1144"]);

            var s = search.create({
               type: "item",
                filters: [filters]
            });
this works for me, try it 🙂
i
Hi @Nikola Gavric Thanks for the tip!
Works perfectly! Thanks
n
@Itzco cool 🙂