web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Building a barcode sca...
Power Apps
Unanswered

Building a barcode scanner in inventory app

(1) ShareShare
ReportReport
Posted on by 110
Hi! I am building a stock take app for my colleagues to manage inventory items in our department. I've successfully integrated the Excel table as the data source, following the helpful guide from Shane's YouTube video (Power Apps Barcode Scanner for Inventory Records) and Reza's YouTube video (How to Select MULTIPLE Items in Power Apps Gallery & PATCH). The single barcode scan is working perfectly.
 
Please take a look on formula below. 
 
On scan property of barcode scanner
 
On select property of Update button
 
Now, I would like to step further to update the data source when multiple barcodes are scanned when I press "Update" button. I'm not sure how to adapt the formula to handle multiple inputs.
Any advice you could offer would be greatly appreciated. Thanks so much.
Categories:
I have the same question (0)
  • Suggested answer
    VishalGurav Profile Picture
    15 on at
    Building a barcode scanner in inventory app
    Hello,
     
    As you already have stored the data in your location collection, it is very simple to go ahead and run a loop on collection and patch the rows in your Datasource which is Excel.
     
    Following is the sample code,
     
    ForAll(
        colData1,
        Patch(Datasource, Defaults(Datasource), { Field1: Field1, Field2: Field2 })
    );
    

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard