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 Scanner Replac...
Power Apps
Answered

Barcode Scanner Replace SharePoint List Item

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Good afternoon!

 

I am creating a simple inventory app from a SharePoint List, below is the current layout of the edit screen. I added a barcode scanner control, but I am no developer and not quite sure what needs to be done to get the data from the barcode scan into the "Serial Number" field.

 

  atupeck-mtg_1-1595440597342.png      atupeck-mtg_0-1595440551781.png

Thanks it advance!

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    Hi @Anonymous ,

    On the OnScan of the Barcode scanner control

    UpdateContext({vScanCode:BarcodeScanner1.Value};
    Reset(YourSerialNoControlName)

    On the Default of the Serial Number control

    If(
     !IsBlank(vScanCode),
     vScanCode,
     Parent.Default
    )

    Add to your save code (at the end) and any exit screen or cancel code

    UpdateContext({vScanCode:Blank()})

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • jaxapmi Profile Picture
    28 on at

    Hello Warren! 

    When you write "Serial Number control" do you mean the DataCard or the DataCardValue?

    I'd love to use this on my app but I'm not 100% confident where to put the code.

    Thank you.

    Jax

  • WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    @jaxapmi ,

    The Value (although you might read this blog of mine on naming controls)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard