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 / Populate a text field ...
Power Apps
Answered

Populate a text field with a barcode scanner

(0) ShareShare
ReportReport
Posted on by

Hello,

I want to implement a new asset management system into our office.

I'm using a Microsoft List to store the data, and from that have integrated an app. I would like to add a barcode scanning option to an asset tag text field so that it will auto-populate on a scan, then when you have saved the record, it will update to the Microsoft List.

 

I have no knowledge in the Power Apps field so I would have no clue how to implement this, if anyone could help I would appreciate it!

 

Thanks in advance.

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello matte,

    Here are the steps:   (Assuming you already added your list as a Datasource)

     

    0) Create your input form and add all your fields there.   

    1) In the serial number CARD, which you want to have the data read from a camera, insert a barcode scanner object.  (Insert/Media/Barcode scanner)

     

    leonunescouto_0-1636052538690.png

     

    2) on the OnScan property of that Barcode Scanner, set a temporary variable to receive the data you are reading.    Set(tmpScan,Self.Value)

     

    3) On the serial number Card, On the Default property, set the following formula: 

     

    leonunescouto_1-1636055310477.png

    Basically it checks for the form mode.  If is New then it gets the value from the tmpScan variable, otherwise it gets from the form itself)

     

    4) Finish to add your data and then submit the form.

     

    Let me know if that is what you were looking for.

     

    Cheers,

    Leo Couto

     

  • SH-23070720-0 Profile Picture
    on at

    Brilliant, thanks for providing this.

     

    Many thanks,

    Sam

  • gpdurham Profile Picture
    4 on at

    i still don't understand what I am doing wrong. I made an inventory app. It works really well, but now I want the user to be able to scan a barcodes.

    1 )to input the SN into the field for the record they are looking at (if it doesnt have one assigned yet). 

    2) to look up an item with barcode

    and no matter what formula i use that i have found, including this one, i get errors. 

  • gpdurham Profile Picture
    4 on at

    Screenshot 2024-02-27 at 10.01.14 AM.png

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard