web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

LOOKUP ID FROM A COLLECTION

(0) ShareShare
ReportReport
Posted on by 195

Hello Everyone, 

Good day!

I have a question. I want to get the ID from a collection. I'm using the code below.

 

LookUp('Data Source', ID = LookUp(colRequestLeaders, ThisItem.ID = Request.Id).'Service Region Market'.Id).'PPL Leader'.DisplayName



But I'm having a delegation warning. Thanks in advance for your help!

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    151,767 Most Valuable Professional on at
    Re: LOOKUP ID FROM A COLLECTION

    Hi @YamiteKudasai ,

    Try this

    With(
     {
     wID:
     LookUp(
     colRequestLeaders, 
     Request.Id = ThisItem.ID
     ).'Service Region Market'
     },
     LookUp(
     'Data Source',
     ID = wID.Id
     )
    ) 

     

    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.

    Visit my blog Practical Power Apps

  • YamiteKudasai Profile Picture
    195 on at
    Re: LOOKUP ID FROM A COLLECTION

    Hello sir @WarrenBelz , still having delegation warning in wID part.

  • WarrenBelz Profile Picture
    151,767 Most Valuable Professional on at
    Re: LOOKUP ID FROM A COLLECTION

    Hi @YamiteKudasai ,

    Try the below, but if it does not work, there is no way of doing a Delegable query with your structure as this is a Relational Query and SharePoint is not a Relational Database

    With(
     {
     wID:
     LookUp(
     colRequestLeaders, 
     Request.Id = ThisItem.ID
     ).'Service Region Market'.Id
     },
     LookUp(
     'Data Source',
     ID = wID
     )
    ) 

     

    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.

    Visit my blog Practical Power Apps

  • WarrenBelz Profile Picture
    151,767 Most Valuable Professional on at
    Re: LOOKUP ID FROM A COLLECTION

    Hi @YamiteKudasai ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    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.

    Visit my blog Practical Power Apps

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 671 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 424 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 243

Last 30 days Overall leaderboard