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 problems wi...
Power Apps
Unanswered

Delegation problems with small CDS database using Filter, If, IsBlank, LookUp, and =.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Can someone help with this:

 

I have a 'small' database of <1000 products that I want to use for a stocktake app. I have CDS tables of products and suppliers etc, and I am coming up against the whole 'delegtion' story. As an example I shall describe one of my problems below. I thought I was using all delegable commands but obviously not...

 

I have a screen with an drop-down list for my Suppliers which on selection populates a text box with the PrimaryId of that Supplier. The Gallery then filters the CDS table to present a list of Products from that Supplier - however it only looks throught the first 500 rows of the Products table. I'm using the textbox as another forum post mentioned this may help.

 

DropDown3_1 code: 

SortByColumns('TheStoreApp Suppliers', "SupplierName", Ascending)

 

TextBox 47 code (I've put the IsBlank default in there as it was erroring when the screen first loads):

If(IsBlank(Dropdown3_1.Selected), "00059", LookUp('TheStoreApp Suppliers', Dropdown3_1.Selected.SupplierName = SupplierName, PrimaryId))

 

Gallery code ('TheStoreAppSupplierProductList' is a 'LookUp' field that links the Product to a Supplier):

Filter('TheStoreApp Products', TheStoreAppSupplierProductList.PrimaryId = TextBox47.Text)

 

The Gallery code shows blue lines under the '.PrimaryId' and '=' showing that this has 'service limitations' (i.e. cannot be delegated)

Can someone suggest whether it is the 'If', 'IsBlank', 'LookUp', 'Filter',  '=', or the 'PrimaryId' column that is causing the delegation to fail?

 

Thanks in advance.

Matt 

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi Matt,

     

    Is this happending to all your CDS entity or just specific one? Have you tested with a new one?

     

    Regards,

    Mona

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Mona

    This seems to be happening for a lot of my entities.

    The latest one is this:

    Filter('TheStoreApp Purchase Orders', Text(Toggle3.Value) in PurchaseOrderReceived)

     

    I'm trying to filter a gallery based on a toggle control on the screen - the 'in' has a blue underline showing 'service limitations' 

     

    Thanks

    Matt

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 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard