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 / Creating Barcode Scann...
Power Apps
Unanswered

Creating Barcode Scanner App with URL Launch

(0) ShareShare
ReportReport
Posted on by 15

Hi Community,

I'm seeking your assistance in creating a simple Power Apps mobile app for sales associates. The app should allow them to:

  1. Scan a product Data Matrix barcode using the device's camera.
  2. The app extracts the first 10 digits from the scanned data matrix barcode.
  3. Integrate those 10 digits into a specific URL (e.g.  www.google.com/ABCDEFGHI )
  4. Launch the constructed URL automatically in a web browser.

I've already explored the forums and tried using generative AI to create the app, but I'm encountering formula-related errors that I can't resolve.

Here's a breakdown of the desired functionality:

  • Scanned Barcode Example: ABCDEFG HIJKLMNOPQ (data matrix format)
  • Extracted Digits: ABCDEFGHIJ (first 10 digits)
  • Constructed URL: www.google.com/ABCDEFGHIJ (using extracted digits)

I'd greatly appreciate any guidance or suggestions for overcoming the formula errors and successfully building this app.

Thank you in advance for your support!

Categories:
I have the same question (0)
  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    You just need to add a Scan control to the app. When you scan a code the control holds the data in the Value of the control (Scanner.Value) you can use that data by putting comands in the OnScan property of the control. You could make it as simple as Launch( "https://bing.com Self.Value" ). You may need to be more specific in your search. 

    Here is info on the Scanner

    Here is more info on the Launch command

    If you are interested here is a video by Shane Young delving into the Scan function

  • Cr1t Profile Picture
    555 on at

    Hello @Egemeny,

    First step.

    Click on Settings --> Upcoming features--> Retired --> and turn on Legacy Barcode Scanner. 

    Cr1t_0-1718367185228.png


    Use Insert and add Barcode scanner

    Cr1t_1-1718367232549.png

    Cr1t_2-1718367313475.png

     


    OnScan property

     

     

    Set(varScan,BarcodeScanner1.Value)

     

     


    I have added a text input to store the scanned value

    Textinput Default property

     

     

    varScan

     

     

     

    Cr1t_3-1718367402427.png

     

    I have added a button to perform the extraction of 10 digits:

    OnSelect property of button

     

     

    Set(
     ExtractedCode,
     Mid(
     TextInput1.Text,
     1,
     10
     )
    );
    Launch("https://www.google.com/" & ExtractedCode)

     

     



    Cr1t_4-1718367472510.png

     


    When you open the app on mobile and click on scan button it should launch the inbuilt camera app and on sucessfull scan you should be able to see the scanne value in textinput 1.

    Please let me know if this works for you. 
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



     

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
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard