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 / Powerapps barcode scan...
Power Apps
Answered

Powerapps barcode scanner - scanned data challenge

(0) ShareShare
ReportReport
Posted on by 20

Hello wonderful powerapps people!

 

I've built a QR scanner for event registration, that looks up the scanner QR in a sharepoint list, and then returns either the booked record or a register new person if no record found.

 

The challenge I'm encountering is that there are two different ways the QR code is presenting:

1. In email comms  CRMURL.com/QRCodeGen.ashx?Id=4g8d1329-6b31-ee11-bdf4-6045bd905f89     .jpeg

2. In print comms 4g8d1329-6b31-ee11-bdf4-6045bd905f89

 

the OcScan properites are Set(VarScannedBarcode, First(BarcodeReader2.Barcodes).Value)

 

Then the gallery item code is Filter(ODDATA, Title=Right(VarScannedBarcode, 36)) which is getting me part of the way there, but I'm struggling to figure out how to variably remove the 5 spaces.jpeg when present.

 

Any help very much appreciated! 

Categories:
I have the same question (0)
  • gcmfaizan Profile Picture
    1,022 on at

    Hi @AndyinWales ,

     

    can you try this formula I hope this will resolve your issue:

     

    Set(VarScannedBarcode, First(BarcodeReader2.Barcodes).Value);
    Set(VarScannedBarcode, If(Right(VarScannedBarcode, 5) = ".jpeg", Mid(VarScannedBarcode, 1, Len(VarScannedBarcode) - 5), VarScannedBarcode));
    Filter(ODDATA, Title = VarScannedBarcode)

     

    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

     

    Cheers!

     

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @AndyinWales ,

     

    You can use below formula to get the ID:

    vjefferni_0-1692606508720.pngvjefferni_1-1692606542733.png

    Set(VarScannedBarcode,Last(Split(First(Split(First(BarcodeReader2.Barcodes).Value," ")).Value,"=")).Value)
    Filter(ODDATA, Title=VarScannedBarcode)

     

    Best regards,

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 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard