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 Apps
Answered

qr y coleccion

(1) ShareShare
ReportReport
Posted on by

Very good day, I have an application that reads QR codes, I am trying to get it to send all the readings to the collection, it only sends one

andresnex_0-1720807201374.png

The process works only by taking a code

 

event OnScan

Collect( ScanColeccion ;
{
 prueba: First(BarcodeReader1.Barcodes).Value
}
);;
andresnex_1-1720807901772.jpeg

I need to be able to take more shots and send them all to the collection, can you guide me

Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @andresnex,

     

    The current code will work when the Barcode Reader is not set to 'Scan multiple'. In case of Scan multiple, the code below should do the trick:

     

    //Should you want to Clear and Collect after each OnScan (of multiple codes)
    //Use ClearCollect instead of Collect
    Collect(
     ScanColeccion;
     //Return an array of all barcode values
     ForAll(
     Self.Barcodes;
     {
     prueba: Value
     }
     )
    );;

     


    If this solves your question, would you be so kind as to accept it as a solution✔️

    If you liked my solution, please give it a thumbs up👍

     

    Connect with me: LinkedIn | Blog

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard