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 / LookUp SharePoint list...
Power Apps
Answered

LookUp SharePoint list based on Collection value

(0) ShareShare
ReportReport
Posted on by 2,567

I'm trying to Filter a SharePoint list based on a Collection i have and at the end Patch all the Items that was filtered.

 

My collection contains the following information.

Id = Id of the item
Value = The TicketID

 

LookUp(SharePointList, TicketID = (How can i make it check the collection without delegation warning and without saying wrong type)

TicketID is a Single line of text column.

Categories:
  • JimmyW Profile Picture
    2,567 on at
    ClearCollect(
     TestCol,
     Concatenate(RelatedTicketsCol6.Value, ""));
    
    ClearCollect(HelloTest,
    ForAll(TestCol,
    LookUp(SharePointList, TicketID = Result)));

    Seems like the above works, using Concatenate i can then Filter or LookUp using the Result.

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @JimmyWork ,

     

    Could you tell me:

    Do you want to find the intersection between a collection and a SP list? (For example: If the value of a record in the collection is “xxx” and the value of the TicketID column in the list is also “xxx”, you need this record.)

     

    If my assumption is correct, I've made a test for your reference:

     

    1\ This is my list.

    v-xiaochen-msft_0-1609125634304.png

     

     

    2\ This is my collection “TestCol”.

    ClearCollect(TestCol,{Id:"ss",Value:"111"},{Id:"ssd",Value:"333"},{Id:"gg",Value:"555"},{Id:"sse",Value:"777"})

    v-xiaochen-msft_1-1609125634306.png

     

     

    3\ Add a button control and set its onselect property to:

    ClearCollect(HelloTest,ForAll(TestCol,LookUp(LIST49,TicketID=Value)))

     

    4\ Add a gallery control and set its Items property to:

    HelloTest

     

    5\ The result is as follows:

    v-xiaochen-msft_2-1609125634308.png

     

    Best Regards,

    Wearsky

    If my post helps, then please consider Accept it as the solution to help others. 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
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard