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 / Barcode Scanning to Sh...
Power Apps
Answered

Barcode Scanning to SharePoint List

(0) ShareShare
ReportReport
Posted on by 23

Hi all,
I am new to powerapps. I am trying to build a simple powerapp to scan a barcode and record it as a new item on SharePoint.

 

Below is my code for 'OnScan':

Patch(Inventory,{'Scanned By': User().FullName, 'Scanned Time': Now(), Storage: BarcodeReader1.Value, Product:"ORIG INN"})

 

As soon as I use the BarcodeReader1.value - it doesn't work anymore.

 

I have tried just putting a static text on the Storage field and I can confirm that it records a new record in SharePoint.

 

Can anyone please advise how can I get this Barcodereader field to record on the storage field.

Thank you

Categories:
I have the same question (0)
  • Mini_R53 Profile Picture
    23 on at

    just to add the barcodereader.value seems like it is working on powerapps built 1 or 2 years ago.

  • Verified answer
    Mini_R53 Profile Picture
    23 on at

    Found the issue - powerapps have retired the 'barcode scanner' and replaced it with 'barcode reader'.

    For the barcode reader - the command is:

    Storage: First(BarcodeReader1.Barcodes).Value

     

    the storage is the field name on my sharepoint list.

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @sohc ,

     

    Please try this if you want to add a new item when scanning the barcode.

    Patch(Inventory,Defaults(Inventory),{'Scanned By': User().FullName, 'Scanned Time': Now(), Storage: First(BarcodeReader1.Barcodes).Value, Product:"ORIG INN"})

     

    Best Regards,

    Wearsky

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
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard