cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
yanni99
Helper II
Helper II

Delegation I do not understand.

I have a delegation warning with a Sharepoint list I cannot get my head around and fix. 

 

Filter(SharepointList, Column in PowerappsCollection)

 

I get the blue wavy thing under the "in". I cannot figure out how I can do differently. The SharepointList might have 10 000+ items and PowerappsCollection only up to 100 and is only one column. 

 

Can you help me figure this out?

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@yanni99 

The In operator is not delegable to data sources.  This is definitely why you are getting that warning.

 

If your datasource is over the record limit, then you can consider another option IF your data column meets the delegable criteria.

 

    ForAll(PowerAppsCollection, Lookup(SharePointList, delegableColumn = Value))

 

This will return a table of all the items in the SharePoint list that match the criteria.  (please note, the ForAll function returns a Table...you can use it - on Items properties, collections, variables, etc)

 

The above assumes a single column collection.  If your PowerAppsCollection has more columns in it, then replace the "Value" above with the column from your collection that you want to compare against a delegable column in SharePoint.

 

NOTE: if you stick to = (equal) operators on SharePoint, most things will be delegable except datatime columns.  Please refer to the SharePoint connector docs for more on delegable options.

 

I hope this is clear and helpful for you.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

2 REPLIES 2
RezaDorrani
Dual Super User II
Dual Super User II

@yanni99 

 

In operator is  not delegable with SharePoint

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/delegation-overview

 

What is your use case?

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

RandyHayes
Super User
Super User

@yanni99 

The In operator is not delegable to data sources.  This is definitely why you are getting that warning.

 

If your datasource is over the record limit, then you can consider another option IF your data column meets the delegable criteria.

 

    ForAll(PowerAppsCollection, Lookup(SharePointList, delegableColumn = Value))

 

This will return a table of all the items in the SharePoint list that match the criteria.  (please note, the ForAll function returns a Table...you can use it - on Items properties, collections, variables, etc)

 

The above assumes a single column collection.  If your PowerAppsCollection has more columns in it, then replace the "Value" above with the column from your collection that you want to compare against a delegable column in SharePoint.

 

NOTE: if you stick to = (equal) operators on SharePoint, most things will be delegable except datatime columns.  Please refer to the SharePoint connector docs for more on delegable options.

 

I hope this is clear and helpful for you.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,608)