web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Barcode scanner value ...
Power Apps
Answered

Barcode scanner value search gallery

(0) ShareShare
ReportReport
Posted on by 24

Hi Guys! 

I'm having a little issue - I'm quite new to PowerApps 

I'm trying to set my app so that when the barcode is scanned, the data is cross checked with a gallery, and if the data is matched, to navigate to another page in the app.. Here's the code I have (what I thought would work) in the barcode OnScan:

 

Set(varScan, BarcodeScanner.Value);

If (varScan in "Column1",Navigate(Screen2,none),Notify("No records match this barcode",Error));

 

If anyone could shed some light on how to do this I'd really appreciate it! 😁

 

 

 

 

 

Categories:
I have the same question (0)
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Set(varScan, BarcodeScanner.Value);

    If (!IsBlank(LookUp(DataSource,"Column1" = varScan)),Navigate(Screen2,none),Notify("No records match this barcode",Error));

     

    Try that

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,

    Gonçalo Nogueira

    Check my LinkedIn!

    Buy me a coffee!

    Check my User Group (pt-PT)!

    Last Post on Community

    My website!

  • 00rebe Profile Picture
    24 on at

    @Nogueira1306 Thanks for your help, however unfortunately it hasn't worked, it's still coming back with the else value.. 

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Which value do you scan and which values "Collumn 1" has?

     

     

  • 00rebe Profile Picture
    24 on at

    @Nogueira1306  Scanned value is an equipment number & Column1 is also equipment number - I have everything in OneDrive excel

    The purpose of the app is to check inventory - if the number matches the column navigate to a screen showing equipment details , otherwise just notify it's not found. 

    Been stuck on this part a while now! 

    When the barcode is scanned and the value is printed to a label it is the correct value - I just can't seem to get it crossed with the gallery

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Are you trying to compare text and number?

  • 00rebe Profile Picture
    24 on at

    @Nogueira1306 oh yes, I am, should varScan be changed? Or would you have another method? Thanks for your help! 

  • Verified answer
    Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Yes. If you want to compare text, on the field that is number write this:

    Text(field)

     

    With number

    Value(field)

     

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-text

     

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-value

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,

    Gonçalo Nogueira

    Check my LinkedIn!

    Buy me a coffee!

    Check my User Group (pt-PT)!

    Last Post on Community

    My website!

  • This_is_Asta Profile Picture
    4 on at

    Hey there, I'm also new to power apps making same king app like you said but I'm stucked after inserting a bar code reader button, I need to populate other screen with respective details. Can you please help me with this 

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard