Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • gpdurham Profile Picture
    4 on at
    Re: Populate a text field with a barcode scanner

    Screenshot 2024-02-27 at 10.01.14 AM.png

  • gpdurham Profile Picture
    4 on at
    Re: Populate a text field with a barcode scanner

    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. 

  • SH-23070720-0 Profile Picture
    on at
    Re: Populate a text field with a barcode scanner

    Brilliant, thanks for providing this.

     

    Many thanks,

    Sam

  • Verified answer
    Community Power Platform Member Profile Picture
    on at
    Re: Populate a text field with a barcode scanner

    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

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard