Hi all, do you know if there's a way to search for...
# general
l
Hi all, do you know if there's a way to search for custom list? Basically I need to access all its' values somehow with a script
c
Yes.
Copy code
var listsearch = s.create({
 	type: 'customlist_yourlist',
 	columns: [ s.createColumn({name: 'internalid'}),
 	s.createColumn({name: 'name'}) ] });

var result = listsearch.run().getRange(0, 1000);
result.forEach(result => console.log(result.getValue('name')));
That's just a quick test in the browser console.
s
is
N/search