So I am still banging on with this and I am reaching out for assistance..
It seems to me that unless I am retrieving data into a Gallery directly as it's datasource there is no way to retieve a data-set of items; and even in this instance a batch at a time which will only get all items when you page down (scroll) the results.
Scenario is a as follows:
I have limited my app to only include 20 non-delegated items in the advanced app settings.
I have a gallery which is directly linked to a SharePoint list with 1000+ items and some of these are approved so are not. The list also has additional properties I would like to filter on, namely SiteID which is a number column (not lookup) this pulls back data but only allows my to Filter results with 1 filter expression - otherwise nothing.
I have created three test functions non of which show a delegation warning, but all are limited to 20 results - (App Settings Limit)
Button 1
ClearCollect(colApprovedWorkItems,Filter('Work Items',SiteID = _Location.ID && IsApproved = false))
Button 2
ClearCollect(colWorkItems,Filter('Work Items',SiteID = _Location.ID))
Button 3
UpdateContext({SiteItems: Filter('Work Items',SiteID = _Location.ID)})
My Test Gallery which is providing the records on the right, but only gets all data when you scroll down has the following:
Filter('Work Items',SiteID = _Location.ID)If I use this expression I get nothing
Filter('Work Items',SiteID = _Location.ID && IsApproved = true)
So is it possible to get all items from SharePoint which meet a criteria or not. Screen shot of screen below with NO delegation warnings...
Again sorry about this.. I thought I had it, I thought wrong.. so wrong...
Andrew
