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 Lookup Colu...
Power Apps
Answered

SharePoint Lookup Column Id Subfield - Filter Gallery Items - Delegation Warning

(1) ShareShare
ReportReport
Posted on by 63

I have a gallery control in PowerApps and its Items property is set to the following function:

Filter('My SharePoint List', 'My Lookup Column'.Id = 1)

This is giving me a delegation warning which is confusing based on the documentation found here:
https://docs.microsoft.com/en-us/connectors/sharepointonline/#power-apps-delegable-functions-and-operations-for-sharepoint

From that article it says that a Complex field (e.g. Lookup Column) is delegable based on the subfield involved. So in this case the "Id" field is treated as a "Number" in PowerApps. However the "ID" field only supports the "=" operator. So why am I getting a delegation warning while using the formula above?

Delegation Notes From Article:

  1. SharePoint supports delegation of complex types by deferring the decision for delegation to the subfield (the Id field) involved. Check the type of the subfield being used on the complex type and then check this table for delegation capabilities. Note that only Email and DisplayName are delegable in the Person data type.
  2. The SharePoint ID field for a table is a number field in Power Apps. However, SharePoint only supports the equal ('=') operation for delegation on an ID field.

Capture.JPG

I have the same question (0)
  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @ZachS15 ,

    Do you mean that Id for lookup field is not delegate?

    I've made a similar test and met the same problem.

    Here's an alternative solution:

    set ID as the lookup field's related field.

    8133.PNG

     

    Then you could use lookupfield.Value to represent that ID value.

    Filter('My SharePoint List', 'My Lookup Column'.Value = 1)

     

    Here's a similar issue for your reference:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Delegation-warning-on-SharePoint-list-lookup-column-Id-versus/m-p/369410

     

     

    Best regards,

  • JohnP Profile Picture
    543 on at

    @v-yutliu-msft 

    Your proposed solution seems to work, but I get an incompatible type warning?

    I need to use the Text() function to remove it like so:

     

    Filter('My SharePoint List', 'My Lookup Column'.Value = Text(1))

     

    Is this happening on your end as well? 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#2
11manish Profile Picture

11manish 205 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard