Skip to main content

Notifications

Community site session details

Community site session details

Session Id : na57onmEbcZOq2CjewcMjc
Power Apps - Building Power Apps
Unanswered

Barcode Reader to Update Excel table

Like (0) ShareShare
ReportReport
Posted on 3 Nov 2023 14:55:03 by 49

I have an excel table with three columns, Barcode, Available, and StockQty.

 

I am trying to build a PowerApp where I can scan a barcode, and it look on the Excel Table in the "Barcode" column for that value.

If that barcode is in Table 1, column "Barcode" - I would like it to go to a form so I can update the Available and StockQty columns for that barcode.

 

I can't seem to get past the first step here.

 

I have tried creating a Collection of Scanned Values...

 

Collect(colScannedItems,
 {ScannedItem: First(BarcodeReader.Barcodes).Value, ScannedTime: Now()}
)

 

 

I have tried creating a Lookup...

 

LookUp(Table1,Barcode=First(BarcodeReader.Barcodes).Value)

 

 

But I keep receiving errors.

 

I believe a Patch function will be needed, but I cant figure out logically where to put it because BarcodeReader creates a table.

 

Any help is appreciated! I can't find very clear info on the most up-to-date Barcode Reader input.

  • TimeFae Profile Picture
    49 on 03 Nov 2023 at 18:07:16
    Re: Barcode Reader to Update Excel table

    This didn't work exactly as I had hoped but it helped me a lot - so thank you.

     

    I ended up taking out the Form portion and instead just updating the spreadsheet directly.

    Turns out I only needed to mark it as "available" not update the qty.

     

    I ended up using this formula On Scan...

    Set(scannedItem, First(BarcodeScanner.Barcodes).Value);
    Set(foundItem, LookUp(Table1_1, Barcode = scannedItem));
    
    If(
    Not(IsBlank(foundItem)),
    Patch(
    Table1_1,
    foundItem,
    {Available:"Yes"}
    ),
    Notify("Item not found")
    )

     

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 Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 225 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 110

#3
stampcoin Profile Picture

stampcoin 99

Overall leaderboard
Loading started
Loading complete