Hello, i have a question about list.
I am trying to get items from list but it exceeds the list view threshold.
Can I somehow define the view name/id of that list?
Here is a short snippet of my code:
const targetWeb = new Web("https://name.sharepoint.com/sites/data/test/");
const viewId = "{viewId}";
targetWeb.lists.getByTitle("MyList").items.select("Title").getAll().then(function(items) {
console.log("SelectedItems:", items);
});
Thank you, Marek