Showing results for 
Search instead for 
Did you mean: 
Helper V
Helper V

QR code lookup and error message

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


    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?





Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (3,206)