cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
geneZebra
Resolver II
Resolver II

delagation warning for in or ecactin with filter how to correct?

I am trying to rewrite my app to use a share point list rater than excel. Once I change the data source to sharepoint, I start seeing all sorts of delagation warnings. The following is a very basic example that according to the documentation should not be generating a warning. Unfortunately, I am getting the warning on the "exactin" function. How can this be avoided? 

 

Set(_User, Office365Users.MyProfile());

ClearCollect(_coBudgets, Filter(EttTravelAppBudgets, _User.Department exactin EttTravelAppBudgets.Department);

 

I am now looking to creating the applicaiton from scratch and this is the first error I am getitng.  The Department field is a text type in the EttTravelAppBudgets table which is a sharepoint list.

 

Is this a known issue? If this can be safely ignored, how do I remove the warning? If not, how can I reduce the data set since this seems to be the only way to isolate down a user's department from a list.

 

 

thanks,

Gene

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Jeff_Thorpe
Super User
Super User

The exactin isn't a delegable operator in SharePoint. Try this formula instead:

 

ClearCollect(_coBudgets, Filter(EttTravelAppBudgets, Department = _User.Department))



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

The "in" isn't delegable in SharePoint either.  The link below shows what is delegable in SharePoint.

 

PowerApps delegable functions and operations for SharePoint



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

5 REPLIES 5
Jeff_Thorpe
Super User
Super User

The exactin isn't a delegable operator in SharePoint. Try this formula instead:

 

ClearCollect(_coBudgets, Filter(EttTravelAppBudgets, Department = _User.Department))



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

thanks. I got got that after I posted but also noticed "in" doesn't work which is delagatable. I guess there is a issue with the in operator.

 

THanks,

Gene

 

The "in" isn't delegable in SharePoint either.  The link below shows what is delegable in SharePoint.

 

PowerApps delegable functions and operations for SharePoint



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

got it now thanks. 

Now I'm thinking I may be able to slavage my excel based powerapp vs a full rewrite. 🙂

 

Thanks,

Gene

 

In general SharePoint is a better data source than Excel, especially if the app is going to be used by a group of people on a regular basis. The key to working with SharePoint is understanding what is delegable and what column types to use when creating your list. The most challenging part in multi select choice fields because those aren't delegable and there isn't a good work around.



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (17,015)