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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Barcode Scanning to Sh...
Power Apps
Unanswered

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

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard