web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / check in / check out a...
Power Apps
Unanswered

check in / check out app of employee

(0) ShareShare
ReportReport
Posted on by 294

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

Categories:
I have the same question (0)
  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @gennarodp ,

     

    Would you elaborate more on the issue you are getting for Logout Scan code ? 

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @gennarodp 

     

    For Logout, We have got the employee record again using scanner (Employee ID)

     

     

    Set(EmployeeID, BarcodeScanner1.Value);
    Patch('EmployeeList', LookUp(
     'EmployeeList',
     ID = Value(EmployeeID)
     ),
     {
     LogOut: Now()
     }
    );
    Navigate(OKLoginScreen)

     

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @gennarodp

     

    Please let us know if anything needs on your post. We can help with this.

     

    "Please do not forget to give kudos if you find the suggestion helpful or Accept it as a solution if works fine to help other users to find it useful. "

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard