I'm able to get the results of a list view like so:
conn.sobject('ListView').retrieve(listId, function(err, listView) {
console(listView);
});
But that only returns the description of the list view without the results and I want to get the results of the list view as well.
I see in the docs here that there is a ListView class that has a results method, but I can't figure out how to use it.
Is there something I am missing? thank you!
The
ListViewin API reference is not a sobject name to passConnection#sobject(sobjectName). It is a JavaScript class whose instance will be returned bySObject#listview(listviewId). The available listview definitions of certain SObject are returned by callingSObject#listviews().