Skip to main content

Notifications

Community site session details

Community site session details

Session Id : /TQdl5GFrXmkHNNLnkwjdI
Power Apps - Building Power Apps
Unanswered

QR code lookup and error message

Like (0) ShareShare
ReportReport
Posted on 30 Sep 2021 08:32:29 by 802

Hi there, 

 

My canvas app uses the Barcode reader control to scan QR codes. The QR code contains just a desk number at the moment - OnScan of the QR, it looksup the User, the date and the desk number on a Dataverse table and, if a row matching this criteria exists, it updates another column saying "checked in". 

 

However, if the user scans another QR code where they don't have an applicable entry on the Dataverse table, it brings them through to the same screen saying that they have checked in. 

 

the code to execute the patch to update to "checked in" is below

 

Patch(
 LDN_Desk_Reservations,
 First(Filter(LDN_Desk_Reservations, 'Desk Reference'= QRValue.Text && 'LDN Desk Reserved For' = User().FullName && 'Location'= Dropdown5.Selected.Value && 'LDN Desk Reservation Date' = DateValue(lblBookingDate.Text))),
 {'Check In Status': "Checked In"}

 

What I was is a Notify error message to display saying "You are not booked in for this desk" if the lookup 'fails' - can anyone advise please?

 

thanks

K.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard
Loading started