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 / Delegation Woes with F...
Power Apps
Answered

Delegation Woes with Filter() function

(0) ShareShare
ReportReport
Posted on by 789 Moderator

1. There is a SharePoint list, ObsItems, which is a child list to Obs. The lookup field in ObsItems to Obs is Obsfk.

2. There is a SharePoint list, ObsItemsTemplates, which holds default items to be created in ObsItems, when a new Obs record is created. 

3. In a CanvasApp, screen scrObsNew, that when a new Obs record is created, the Patch() function handles creating new ObsItems records, based on the ObsItemsTemplates records.

4. Screen scrObsDetails needs to display the newly created items in ObsItems, so a variable is used to store them, for display within a gallary. 

Set(varObsItems, Filter('ObsItems', Obsfk.Id = varObsID)); /*This is a data snapshot, so it doesn't NEED to be a collection */

 

4. In the Canvas App, the Data Row Limit setting is 2000 items.

Problem: When more than 2000 rows have been added to the entire ObsItems list, the Filter in #4 above can't find any new items that are outside of the 2000 item window. (I assume this is determined by the ID or date Created, as to what is included in the 2000.)

 

5. The number of items needed is only 42, so I assumed that it would be easy to return this many rows.

 

Question: What other technique, code, function, etc do I need to use to return these 42 items from the ObsItems SharePoint list?

 

 

Categories:
I have the same question (0)
  • Verified answer
    Adrian_Celis Profile Picture
    1,652 Moderator on at

    Hi @GDSI 

    The Filter function is delegable which means even if you filter a Sharepoint list with 100,000 rows, it would still return the correct items.

     

    But then the problem is that you are using a lookup column to filter, which is not delegable. So then you should make a few adjustment to the column and then use '.value' from the lookup field instead of '.ID' to now make it delegable.

     

    Set(varObsItems, Filter('ObsItems', Obsfk.Value = varObsID));

     

    Please see this thread for the solution.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 476

#2
WarrenBelz Profile Picture

WarrenBelz 365 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 339

Last 30 days Overall leaderboard