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 / Pre filter photo libra...
Power Apps
Answered

Pre filter photo library that exceeds 8K

(0) ShareShare
ReportReport
Posted on by 1,512

I have an app that is connected to a library that has over 8K of pictures.  I know I cannot load them all at one because of the limitation in place.

 

I want to see if I can on start or on visible collect those images and filter to a specific name.

 

I tried this no joy

ClearCollect(colSinglePhaseReg, 'Asset Photos*DO NOT USE'.AssetClass ="Single Phase Regulator");

I have several screens that are broken down but the individual Asset Class so that if I wanted to filter it on visible or OnStart so I can have all of the images show for that particular Asset Class.

 

Would appreciate the help

Categories:
  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    If you are going to pre-filter the library by asset class then there really is no reason to pull them into a collection using OnStart.  Just use a Filter() in the items of the gallery where you are displaying them.

    Filter('Asset Photos*DO NOT USE', AssetClass ="Single Phase Regulator")
    
  • Dorinda Profile Picture
    1,512 on at

    @Pstork1 

     

    I tried that and it works on every other screen but this one and I dont know if it is because it is further down but this is the code that I have working everywhere else by on this screen

    Filter(
     'Asset Photos*DO NOT USE',
     Substation.Value = Gallery4_11.Selected.Station && AssetClass = "Single Phase Regulator" && AssetPosition = Gallery4_11.Selected.'Asset Location'
    )

     

  • Verified answer
    Dorinda Profile Picture
    1,512 on at

    DUH I figured it out, I had the wrong field matching!!!  I need more coffee

     

    Filter(
     'Asset Photos*DO NOT USE',
     Substation.Value = Gallery4_11.Selected.Substation && AssetClass = "Single Phase Regulator" && AssetPosition = Gallery4_11.Selected.'Asset Location'
    )
  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    What about that filter doesn't work?  what error is it giving?  When you say further down is it included with other code in the Items property?  If it is then check that the other code is running successfully.  Otherwise this code won't be reached.

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 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard