Hello,
i would like to create an app that realise check in and check out of employee with a qrcode (id of employee), saving on sharepoint list "EmployeeList".
I have tested the following solution:
Login Scan:
Set(CurrentCheckInRecord;Patch ('EmployeeList';Defaults ('EmployeeList'); {Title:BarcodeScanner1_2.Value;Nominativo:LookUp(NameList;ID=Value(BarcodeScanner1_2.Value);Name);'Log In':Now()}));;Navigate(OkLoginScreen)
Logout scan:
Refresh('EmployeeList');;If(!IsEmpty(CurrentCheckInRecord);Patch('EmployeeList';CurrentCheckInRecord;{LogOut:Now()}));;Navigate(OkLoginScreen)
I have the following trouble:
When i do log out, the variable is ever the last, and not single log in.
How can i resolve this ?
Thank you