Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Finding a Value in a Collection / Gallery

(0) ShareShare
ReportReport
Posted on by 216 Super User 2025 Season 1

I have been trying to figure out how to find if an item in a collection or gallery can be compared to a textbox.  This would then set a variable for me to use later.

Basically, I a building a collection (colCurrentProjects) for projects.  In this collection there is a column called projectID.  The collection gets displayed in a gallery (galProjects).

So how would use an If() allItems in the collection or gallery projectID = SpecificProjectID" and return a true, false?

Cheers

Categories:
  • Verified answer
    DownForce Profile Picture
    152 on at
    Re: Finding a Value in a Collection / Gallery

    Use the in operator.

     

    If(projectID in Gallery1.AllItems.SpecificProjectID, true, false)

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,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard