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 / How do I avoid the 'De...
Power Apps
Unanswered

How do I avoid the 'Delegation Error" when I have the following code

(0) ShareShare
ReportReport
Posted on by 120

I am nearing the 2000 limit in my sharepoint list. Here is my code.

 

Search(
 SortByColumns(
 AddColumns(
 If(Lower(User().Email)=Lower("x@sample.com") || Lower(User().Email)=Lower("x@sample.com"), // admin email here separated by double pipe
 'Sharepoint_list',
 Filter(
 'Sharepoint_list',
 Lower('Created By'.Email) = Lower(User().Email) || // filter gallery by this
 Lower(Guest.Email) = Lower(User().Email) ||
 Lower('Modified By'.Email) = Lower(User().Email) ||
 Lower(Manager.Email) = Lower(User().Email) // or by this
 )),
 "ManagerName",
 Manager.DisplayName
 ),
 "ID", 
 If(
 SortDescending1, 
 SortOrder.Ascending, 
 SortOrder.Descending
 )
 ),
 TextSearchBox1.Text,
 "Title",
 "Topic",
 "ManagerName"
)
Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    Just did this in a notepad because there's too many variables to match for me to set it up in PowerApps and do it there so there may be some syntax to fix, but I think this should work or get you close. If it gets rid of most your blue lines but leaves one or two let me know, and I or someone else here can help further

     

    Search(
     SortByColumns(
     AddColumns(
     If(
     Lower(User().Email)=Lower("x@sample.com") 
     || 
     Lower(User().Email)=Lower("x@sample.com"), 
     // admin email here separated by double pipe
     'Sharepoint_list',
     Filter(
    			 AddColumns(
    	 			 'Sharepoint_list', 
    	 			 "createdEmail", Lower('Created By'.Email),
    	 			 "guestEmail", Lower(Guest.Email),
    	 			 "modifiedEmail", Lower('Modified By'.Email),
     			 "managerEmail", Lower(Manager.Email)
    			 ), 
     Or(
     Lower(User().Email)=createdMail, 
     Lower(User().Email)=guestEmail, 
     Lower(User().Email)=modifiedEmail, 
     Lower(User().Email)=managerEmail
     ),
    		"ManagerName", 
    	 	Manager.DisplayName
     ),
     "ID", 
     If(
     SortDescending1, 
     SortOrder.Ascending, 
     SortOrder.Descending
     )
     ),
     TextSearchBox1.Text,
     "Title",
     "Topic",
     "ManagerName"
    )

     

  • -aj Profile Picture
    120 on at

    I've replaced the values with the correct information. Im getting this error message - 

     

    aj_0-1693000841947.png

    I removed the LOWER function, and the yield sign went away. I'll be waiting for our users feedback. Thanks!

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

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard