Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Need help understanding delegation

(0) ShareShare
ReportReport
Posted on by

Hi,

I have the following formula:

CleanAndClear_0-1661511639254.png

 


Filter(Check,task_id = LookUp(Task,task_name = CurrentTask).ID).check_name
"Check" and "Task" are SharePoint lists, VarCurrentTask is a context variable. ID, task_id, task_name and check_name are columns in the lists.

 

What I don't understand is why I get a warning message that this formula is not delegable on the "equals" and ID part. I don't use any non-delegable formulas, both Filter() and LookUp() should be delegable to SP, and all the columns I use are either string or integer, nothing else.

 

Can someone explain please why is this not delegable? And maybe suggest a way to make it delegable?

Categories:
  • CleanAndClear Profile Picture
    on at
    Re: Need help understanding delegation

    Hi  @WarrenBelz 

    Thank you for the explanation, now it's perfectly clear.

    I didn't accept the solution sooner as I did not want to close the topic because even though I had a working solution, but I still did not understand the issue completely. Now I am very happy to thank you both for help and close it.

     

    Cheers!

  • Verified answer
    WarrenBelz Profile Picture
    146,645 Most Valuable Professional on at
    Re: Need help understanding delegation

    Hi @CleanAndClear ,

    Firstly you should accept @PowerRanger 's solution to this. To answer your question, SharePoint is not a Relational Database and Relational (secondary) queries are not Delegable - you have asked it to Filter Check and it will not do Task in the same query, however you can send it two separate Delegable queries, either as in @PowerRanger 's response, or if you do not want to trigger anything (the Variable) and simply have a Filter

    With(
     {
     wID:
     LookUp(
     Task,
     task_name = CurrentTask
     ).ID
     },
     Filter(
     Check,
     task_id = wID
     ).check_name
    )

     

  • CleanAndClear Profile Picture
    on at
    Re: Need help understanding delegation

    @PowerRanger  It indeed worked.

    So is it the nested lookup that is the problem? So you cannot delegate nested functions, even when the functions themselves are delegable? And you need to stay on the top level to keep delegation?

     

    Anyway, thanks a lot!

  • Verified answer
    PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at
    Re: Need help understanding delegation

    @CleanAndClear Could you try this instead?

    Set(myId, LookUp(Task,task_name = CurrentTask).ID);

    Filter(Check,task_id = myId).check_name

     

    Does this make any difference?

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard