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
Solved! Go to Solution.
The exactin isn't a delegable operator in SharePoint. Try this formula instead:
ClearCollect(_coBudgets, Filter(EttTravelAppBudgets, Department = _User.Department))
The "in" isn't delegable in SharePoint either. The link below shows what is delegable in SharePoint.
PowerApps delegable functions and operations for SharePoint
The exactin isn't a delegable operator in SharePoint. Try this formula instead:
ClearCollect(_coBudgets, Filter(EttTravelAppBudgets, Department = _User.Department))
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
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.
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
203 | |
187 | |
82 | |
51 | |
37 |
User | Count |
---|---|
290 | |
242 | |
123 | |
74 | |
56 |