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 / Remove part of qr code...
Power Apps
Answered

Remove part of qr code scan result

(0) ShareShare
ReportReport
Posted on by 23

Hi community,

I would like to scan mutliple QR Codes and store a part of the result in a collection.

The result of the scan is that : FL2019W49200805 FFE20FD1

I want to keep only the last part (FFE20FD1).

How can i do that ? The function Right( String, NumberOfCharacters ) do exactly what i want but don't work with numbers.

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,417 Most Valuable Professional on at

    Hi @ALDY_ ,

    If your scan is always the same number of characters

    Mid(YourScanCode,18,8)

    or if you want everything right of the space

    With(
     {wScan: YourScanCode},
     Right(
     wScan,
     Len(wScan) - Find(
     " ",
     wScan
     )
     )
    )

     

    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.

     

  • ALDY_ Profile Picture
    23 on at

    Hi,

    Thanks for your reply @WarrenBelz 

    The scan is always the same number of characters so the first formula should be fine.

    Here is my OnScan action parameter :

    ALDY__0-1627539523188.png

     

     

    Collect(Collection1; {'ID du Capteur':BarcodeScanner1.Value})

     

     

     Can i use the Mid function directly on the BarcodeScanner1.Value in this parameter?

    I tried different syntax but it didn't work.

     

     

  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 2 on at

    This doesn't work?

     

    Collect(Collection1; {'ID du Capteur':Mid(BarcodeScanner1.Value,18,8)})
  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @ALDY_ ,

    To correctly apply the @WarrenBelz solution use: 

     

    Mid(YourScanCode;18;8)

     

     

    Please check @WarrenBelz response as solution !

  • ALDY_ Profile Picture
    23 on at

    Hi @BCBuizer,

    No, the detailled info says "an operator was expected"

    ALDY__0-1627544259209.png

     

  • WarrenBelz Profile Picture
    156,417 Most Valuable Professional on at

    @ALDY_ ,

    Your region needs

    ClearCollect(
     Collection1;
     {
     'ID du Capteur':
     Mid(
     BarcodeScanner1.Value;
     18;
     8
     )
     }
    )
    

    You will need to become accustomed to changing commas , for semi-colons ; and single semi-colons ; for two of them ;; as the is the format in some European countries.

     

     

  • ALDY_ Profile Picture
    23 on at

    It works, thanks !

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 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard