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 warning. Th...
Power Apps
Unanswered

Delegation warning. The "MyProfileV2" part of this formula might not work correcly on large data sets

(0) ShareShare
ReportReport
Posted on by 19

The highlighted part of this formula might not work correctly on large data sets.

 

Search(
 Sort(
 Filter(
 HelpDesk,
 'Created By'.Email = Office365Users.MyProfileV2().mail,
 IsBlank(cbTaskStatusFilter.SelectedItems.Value) || IsEmpty(cbTaskStatusFilter.SelectedItems) || TaskStatus in cbTaskStatusFilter.SelectedItems,
 IsBlank(cbPriorityFilter.SelectedItems.Value) || IsEmpty(cbPriorityFilter.SelectedItems) || Priority.Value = cbPriorityFilter.Selected.Value,
 Created >= dpFrom.SelectedDate && Created <= dpTo.SelectedDate
 ),
 Created,
 SortOrder.Descending
 ),
 txtSearch.Text,
 "Title"
)

 

i'm creating helpdesk app, connect data from sharepoint. During the writing of the application, I encountered this error without knowing how to handle it. look forward to everyone's help

Screenshot (1).png

Categories:
I have the same question (0)
  • iDLIR Profile Picture
    50 on at

    Hi @nhbinh ,

     

    you might think about using User().Email formula there.

     

    Thanks,

    if this helped fixing your issue, kindly mark it as solved to help others too.

  • victorcp Profile Picture
    2,350 Moderator on at

    Hi,

    try this:

    With({email: Office365Users.MyProfileV2().mail},
     Search(
     Sort(
     Filter(
     HelpDesk,
     'Created By'.Email = email,
     IsBlank(cbTaskStatusFilter.SelectedItems.Value) || IsEmpty(cbTaskStatusFilter.SelectedItems) || TaskStatus in cbTaskStatusFilter.SelectedItems,
     IsBlank(cbPriorityFilter.SelectedItems.Value) || IsEmpty(cbPriorityFilter.SelectedItems) || Priority.Value = cbPriorityFilter.Selected.Value,
     Created >= dpFrom.SelectedDate && Created <= dpTo.SelectedDate
     ),
     Created,
     SortOrder.Descending
     ),
     txtSearch.Text,
     "Title"
     )
    )

     

    and I would suggest creating a variable on 'OnStart' to store the user email to improve the performance

     

    I hope it helps 🙂

  • nhbinh Profile Picture
    19 on at

    I tried but still got a bug 😞

  • nhbinh Profile Picture
    19 on at

    I tried but still got a error. The "Search" part of this formula might not work correcly on large data sets.

    Screenshot 2023-05-12 at 5.53.37 PM.png

  • victorcp Profile Picture
    2,350 Moderator on at

    Unfortunately 'Search' is not delegable, so when you use it, the delegation warning will happen.

     

    To avoid that, I would suggest using StartsWith(), but it doesn't work as Search

  • colivam Profile Picture
    58 on at

    Question:
    What is your data source?
    "HelpDesk" is a Sharepoint/Dataverse/Other list?

  • nhbinh Profile Picture
    19 on at

    Helpdesk is a sharepoint list.

    Screenshot 2023-05-12 at 8.12.03 PM.png

  • colivam Profile Picture
    58 on at

    I have only recently started using powerapps, but from the little experience I have, you mean that using inside the filter function (for example), the "in" operator or the IsBlank function, makes the "delegation" warning pop up everywhere!!!!

    I mean .... I think you have the problem of delegation from the root, from the function Filter!!!!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard