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 / BarcodeReader.BarcodeType
Power Apps
Answered

BarcodeReader.BarcodeType

(0) ShareShare
ReportReport
Posted on by 70

Hi guys,

 

I have a Barcodereader control and I would like to do different actions, based on whether it is reading a QR code or a barcode. 

I have tried playing around with the 'BarcodeReader.BarcodeType' property, however can't quite figure it out. 

 

I have set the OnScan of my Reader to: 

ClearCollect(colScanCode; {scannedtype: First(BarcodeReader2.Barcodes).Type})

 

and for testing a label with text property set to 

If(First(colScanCode).scannedtype = 'BarcodeReader.BarcodeType'.QRCode; "QR"; "Not QR").

 

I suspect the issue is the equality as I do not quite now what the output of BarcodeReader2.Barcodes).Type and didn't find any good ressources online. 

 

Many thanks in advance. 

 

BR,

Gonzo 

 

Categories:
I have the same question (0)
  • Verified answer
    SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hi @MS_Gonzo 

     

    You need somehow the barcode types stored somewhere. 

    But looking at your case it would look like:

     

    If(
     First(colScanCode).scannedtype = "QR_CODE",
     "QR", 
     "Not QR"
    )

     

     

    I copied the list of BarcodeTypes for you from https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/controls/control-barcodereader#barcode-availability-by-device and created a collection:

     

    ClearCollect(
     BarcodeCollection,
     {BarcodeType: "QR_CODE"},
     {BarcodeType: "DATA_MATRIX"},
     {BarcodeType: "AZTEC"},
     {BarcodeType: "CODABAR"},
     {BarcodeType: "CODE_128"},
     {BarcodeType: "CODE_39"},
     {BarcodeType: "CODE_93"},
     {BarcodeType: "EAN", Note: "Supports EAN_8 and EAN_13"},
     {BarcodeType: "ITF"},
     {BarcodeType: "PDF_417"},
     {BarcodeType: "RSS14", Note: "Android and iOS support Stacked and Omnidirectional"},
     {BarcodeType: "RSS_EXPANDED", Note: "Android and iOS support Stacked and Omnidirectional"},
     {BarcodeType: "UPC", Note: "Supports UPC_A and UPC_E"},
     {BarcodeType: "Micro QR Code"},
     {BarcodeType: "GS1-DWCode"},
     {BarcodeType: "MSI"}
    )

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • MS_Gonzo Profile Picture
    70 on at

    Thank you. I knew the equality was wrong 😖

     

    BR,

    Hannes

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard