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 / Delay collect function...
Power Apps
Answered

Delay collect function until gallery is filtered

(1) ShareShare
ReportReport
Posted on by 6

Hello all,

 

I'm trying to filter a sharepoint list (2000+ records) for a value I get from a barcode scanner and load the related data to my collection in PowerApps.

 

At the moment I solved it with a gallery and the following filter: 

Filter(Werkzeugstammdaten;StartsWith(Title;BarcodeScanner1.Value))

 

The OnScan of the Barcode Scanner is set to:

ClearCollect(CompareList;First(Gallery1.AllItems))

 

My probem is if the filter takes to long to load a wrong or no data is transferred to my collection. 

Is there a way to trigger the clearcollect function after the gallery is filtered?

 

Thanks for your help 🙂

Categories:
  • Verified answer
    C-Papa Profile Picture
    1,836 on at

    Hi, i would do the following

     

    1. remove the gallery items / filter and replace with CompareList
    2.  change the onscan to ClearCollect(CompareList;  Filter(Werkzeugstammdaten; StartsWith(Title;Self.Value)))

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard