Skip to main content

Notifications

Community site session details

Community site session details

Session Id : H8CJa0ksvo7NYrZqDUCDpg
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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

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

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,030 Most Valuable Professional

Leaderboard