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 to Onl...
Power Apps
Unanswered

Barcode Scanner to Only Scan IF

(0) ShareShare
ReportReport
Posted on by 25

Hi,

 

I'm building an asset management power app where the data is stored in a sharepoint list.

 

Everything is working quite well thanks to advise that has already been given by you fine folks here.

 

I'm currently in the process of optimising some of the features. Specifically the Barcode Scanner.

 

I scan 2 barcodes one is called 'Asset ID' and the other is the 'Service Tag' (Serial Number of the Device) Luckily they are 2 different Barcode types so I have set each scanner input to only scan that barcode type.

 

The issue is that the Service Tag barcode is right next to another barcode on the device which is the same type of barcode as Service Tag.

 

Is there a way to setup it up to only scan if the barcode is = 15 characters as the barcode I keep scanning by mistake is 12.

 

Very specific request I know.

 

Thanks in advance. 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,779 Most Valuable Professional on at

    Hi @XDUKERMANX ,

    You did not state what you were doing after the scan, but you simply need to test the Length of the scanned value

    If(
     Len(BarCodeScannerName.Value) = 15,
     DoWhatever
    )

     

    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.

    Visit my blog Practical Power Apps

  • WarrenBelz Profile Picture
    155,779 Most Valuable Professional on at

    Hi @XDUKERMANX ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    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.

    Visit my blog Practical Power Apps

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard