web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / SharePoint Delegation
Power Apps
Answered

SharePoint Delegation

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

 

Delegation.PNG

 

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Just to try and get around the BOOLEAN bug.. WTF..

    I have created a calculated column which based on the IsApproved & IsExported values sets a Status to either "Exported" / "Approved" or "Pending"

    I then refreshed my APP data source and then added this into the mix.. well it seems strings are not delegable nor are multilple filter criteria

     Filter('Work Items', Status = "Approved")

    The above comes back with a delegation warning and so does the following

    Filter('Work Items', SiteID = _Location.ID && Status = "Approved")

    So what if any are your options..

    Any thoughts would be much appreciated 🙂

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    OK - so the Calculated column being a string is the reason for the non-delegation message.. 

    So YET another cludge / HACK .. I have created another string column and a Flow which will run on item modified. This will copy the value of the calculated Status to our new DelegationStatus column..

    It still seems that I am going to do all this via a hidden Gallery control to try to overcome non-delegated queries.. Fingers crossed, but hopefully this will give me the figures I want.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard