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

Barcode Scanner Replace SharePoint List Item

(0) ShareShare
ReportReport
Posted on by

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
    153,117 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
    153,117 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard