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 Problem in ...
Power Apps
Unanswered

Delegation Problem in Filter Function (CDS)

(0) ShareShare
ReportReport
Posted on by 62

Hello,

I have a delegation problem with the Common Data Service.

In my App i have two entities: Machines and Incidents whereby the two entities have a relationship (Machine-Lookup-Field in Incident-Entity).

In the App I want to have 2 Galleries next to each other:

  • MachineGallery to display all Machines. The items property is very easy on this one:
    Items = Machines
  • IncidentGallery to display all Incidents that belong to the machine which is selected in the first MachineGallery. Here the problem arises. The query currently looks like this:
    Filter(Incident; Machine_.PrimaryId = MachineGallery.Selected.PrimaryId)
    While this query does work in general, i get this blue information that the query can't be delegated to the server and is thus limited to the first 500 records of my Incidents-Entity.

Is there another way to realize a "join"-query like this. I would really need to delegate this to the CDS as I will have more than 500 records; unfortunately I couldn't come up with a solution myself so far.

Thank you in advance for your help
Christoph

Categories:
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @Christoph_G,

     

    Currently the Lookup field is not a supported 'column' under the Filter function in PowerApps.

    So when the formula takes the field within the Lookup type, the blue remindings would then pop up for delegation issue.

    There is an idea submittted on this regarding the delegation:

    Fix 500 Record Limitation

    You may vote it up, or consider submit your own.

    Regards,

    Michael

  • Christoph_G Profile Picture
    62 on at

    Hi @v-micsh-msft,

    thank you for your reply.

    Shouldn't this be a high priority topic? If relations between entities are meant to be defined via Lookups and the resulting complex data type in the column/field, it has to be possible to properly execute queries on this in my opinion.

    Regards,
    Christoph

  • Christoph_G Profile Picture
    62 on at

    Hi @v-micsh-msft,

    thank you for your reply.

    Shouldn't this be a high priority topic? If relations between entities are meant to be defined via Lookups and the resulting complex data type in the column/field, it has to be possible to properly execute queries on this in my opinion.

    Regards,
    Christoph

  • Marek Profile Picture
    43 on at

    Hi Christoph_G

     

    Sorry I didnt work with CDS so this can be offtopic but

     

    Filter(Incident; Machine_.PrimaryId = MachineGallery.Selected.PrimaryId)

    is it correct? (I see "." two times on two "entites" ... likes one lookup in MachineGallery.Selected.PrimaryId but Machine_.PrimaryId too)

     

    Filter(Incident; Machine_PrimaryId = MachineGallery.Selected.PrimaryId) ?

     

    1.

    (or when really on CDS server side is not support to work like this .. maybe try call a 'record' instead of value?

    Filter(Incident; Machine_ = MachineGallery.Selected)

     

    2.

    or maybe not implement it on server side like lookup .. but just for example by "integer/number" column

    Filter(Incident; CustomMachinePrimaryId = MachineGallery.Selected.CustomPrimaryId)

     

    (it lost "relationship" but it gains possibility to make your call (and when CDS will be able to handle original call, data could be copy and migrated into original lookup structure)

  • Christoph_G Profile Picture
    62 on at

    Hi @Marek,

    Ad 1: Unfortunately the filter function doesn not support querying an entire record.
    Ad 2: I inititally wanted to avoid that as this is not a clean solution as I would have a redundancy within my Incident-entity (Two times Machine as foreign key). But maybe I will go with this workaround.

    Regards,
    Christoph

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 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard