Showing results for 
Search instead for 
Did you mean: 
Post Partisan
Post Partisan

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

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.


New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (3,946)