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.