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 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,396 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
    Microsoft Employee 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard