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 - Improve a...
Power Apps
Answered

SharePoint - Improve a query on a Lookup field

(0) ShareShare
ReportReport
Posted on by 2

I have a "Request" form ("Requests" list), which is meant to list all (child) 'Request Profile' records.

The 'Request Profiles' list has a lookup field ('Request').

 

I am trying to filter on the lookup field (the filter below works), but it displays a delegation warning at the ".Id =" part.

I thought that the Filter() is delegated in SharePoint.

According to this: SharePoint - Connectors | Microsoft Docs  and this: Understand delegation in a canvas app - Power Apps | Microsoft Docs

 

Filter('Request Profiles',Request.Id = ThisItem.ID)

 

How can I re-write the above to avoid problems in the future?
(I am expecting much more than 500 records 😞 )

 

Thanks!

 

 

D1nos_0-1623083217258.png

 

Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @D1nos ,

     

    The lookup column isn't delegable.

    If you have less than 2000 records and more than 500 records, I suggest you modify the delegation setting.

    v-xiaochen-msft_0-1623116311163.png

     

    If you have more than 2000 records, I suggest you use the Number column instead of the lookup column.

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

     

  • D1nos Profile Picture
    2 on at

    @v-xiaochen-msft  Thank you for answer. I cannot predict the number of items that will be stored and I cannot risk blocking the application because of this.

     

    When switching from .Id to .Value I do not receive the warning. Is the .Value is delegatable?
    It feels strange for me as number comparisons are "lighter and faster".

     

    I also discovered there is a user voice request to make the .Id delegatable too.
    Enable delegation on lookup 'Id' column - Power Platform Community (microsoft.com)

     

    Thanks!

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