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 / user Login and log off...
Power Apps
Unanswered

user Login and log off limited access in Human Resource Applicaion?

(0) ShareShare
ReportReport
Posted on by 24

Hi Community Team,

 

I Developed Attendance application.Every thing working fine.My requirement is user make entry checkin and checkout once in a day(Restrict multiple login attempts).User for to do checkout,user able to checkout that particular date.How can achieve this one.Please provide any idea regarding thisone.

I tried below code but not working.Kindly help me.

On select of checkin button

If(IsEmpty(Filter('Sharepoint List',Email = User().Email,DateValue(Created) = Today())),
Notify("You have already checkin today",NotificationType.Error)

On select of checkout button

If(!IsEmpty(Filter('New List',Title=User().FullName,DateValue(Created)=Today(),IsBlank('Check Out'))),

Notify("you have alredy checked out today",NotificationType.Error);

Categories:
  • zeg Profile Picture
    96 on at

    @gopichand 
    I still don't have the big picture but if It was me, I would have the checkout button grayed out (disabled) for example with "button.text" explaining the user status.
    So, for example, the button status will be as follows, depending on the result from SharePoint filtering.

    Enable and text = Check in

    Enables and text = Check out

    Disabled and text = checked out

  • gopichand Profile Picture
    24 on at

    Hi @zeg ,

     

     Thank you for response.Actually my requirement is restict multiple checkins by user. I achieved this one and also my business requirement is 

    • If user missed checkout's ,user able to checkout on that particular date only.

    scenario like this:

                    user checkin on 19/5/2023 10:00:00 AM but user forget checkout for the day.

    and user checkin on 22/05/2023,inthis time restrict to update check in time show alert message as last day checkout missed.and user need to checkout that particular date and he able to checkin today.

    checkout is updated dynamically but when user missed checkout navigate that particular date screen and update checkout time.

    If you have any idea please share your thoughts it will helpful to achieve requirements.

    Thanks for your time and efforts.

  • zeg Profile Picture
    96 on at

    Hi @gopichand 

    I see. Thank you for explaining.
    I still don't have all the details but let's suppose that we are not worrying about the list becoming large and having problems with filtering.

    In that case, on start, for example, filter by the user, sort by checkin date and take the newest checkin item.

    If checkout is empty then notify user and provide a button, maybe the same one, that updates the item checkout value (don't know if you want it to be Today() or same value of its checkin)
     Again, still don't have all the details, but if we are worried about filtering then probably create another list ("userslastaction" for example) to simplify your work. This list will have one record per user that updates on each checkin/out action.
    Hope this helps.
     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard