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 Apps
Unanswered

Notify

(0) ShareShare
ReportReport
Posted on by 162

Good day asking for help.

 

How to fix this my formula:

 

If(BarcodeScanner2_2.Value = "","",

If(BarcodeScanner2_2.Value <> LookUp(SPList, ID = BarcodeScanner2_2.Value,ID), "No record found",
If(BarcodeScanner2_2.Value = LookUp(SPList, ID = BarcodeScanner2_2.Value,ID), "Already Regestered", "Thank You!")))

 

Scenario:

What I want to do is when the QR code is scanned when the ID is not recorded in the SP LIST, "No record found" should appear.

What formula should be changed?

 

Thanks

 

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    @DHAGZ ,

    The LookUp function returns a List item so you need to specify what column you want to retrieve. Try,

     

    If(BarcodeScanner2_2.Value = "","",

    If(BarcodeScanner2_2.Value <> LookUp(SPList, ID = BarcodeScanner2_2.Value).ID, "No record found",
    If(BarcodeScanner2_2.Value = LookUp(SPList, ID = BarcodeScanner2_2.Value).ID, "Already Regestered", "Thank You!")))

     

  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @DHAGZ,

    Modify your formula as below:

    If(BarcodeScanner2_2.Value = "","",
    If(BarcodeScanner2_2.Value <>Text( LookUp(SPList, Text(ID) = BarcodeScanner2_2.Value).ID), "No record found", "Already Registered, Thank You!"))

    I assume that the VarcodeScanner2_2.Value returns a text value, so I use Text() to convert the ID number value to text so that we could compare.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard