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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Employee check-in and ...
Power Apps
Answered

Employee check-in and check-out app

(0) ShareShare
ReportReport
Posted on by 11

Hi folks...I am new to using Powerapps and was hoping I could get some help in building a simple app that has a check in and check out button that then writes to excel when an employee has arrived/departed from a particular site. The workflow here is that an employee selects a location from a dropdown list and clicks the appropriate check-in or check-out button which then writes a timestamp to excel. I created an excel spreadsheet with a table (tablelocation) that has all the locations and have another table in the same spreadsheet (tableinput) that can be used to capture the input. Any suggestions?

Categories:
I have the same question (0)
  • Verified answer
    AhmedSalih Profile Picture
    6,678 Moderator on at

    Hi @Mighty_Thor ,

     

    Here are some steps to do what you are trying to accomplish:

    My Excel Data:

    AhmedSalih_6-1656981645679.png

    AhmedSalih_7-1656981671082.png

     

     

    • Create a Phone App and on the first screen

    AhmedSalih_0-1656980675729.png

    • The Datasource of the combo-cox should be connected to the Location Excel file (I have my Excel files in OneDrive)
    • On the Items Proporty of the Location Combo-Box: Distinct(Location_1,Location).Result  (Note:Location_1 is the Excel file name, Location is the Column Name where we have the location values)

    AhmedSalih_1-1656980855136.png

    Add an EditForm to the Screen and its DataSource should be the other Excel file for input:AhmedSalih_2-1656981040216.png

    • Add the Fields to the Form and for the Location field, type the below formula on the Default property:
    • ComboBoxForLocations.Selected.Result

    AhmedSalih_4-1656981168435.png

    • On the Employee Field, type User().FullName to its Default Propoerty:

    AhmedSalih_5-1656981604799.png

     

     

    • On the Save Icon (Green Check Mark): Type the following on the OnSelect Property:
    • SubmitForm(EditForm1);Navigate(Screen3,ScreenTransition.Fade)
    • I added a Sucess Screen and after the form is submitted, it will navigate to that screen
    • Testing Entries from PoweApps:

    AhmedSalih_8-1656981738947.png

     

     

     

    Regards,
    Ahmed
    If my reply helped you, please give a 👍. And if it has solved your issue, please consider Accepting it as the Solution to help other members of the community find it more.

     

     

     

  • Verified answer
    Mighty_Thor Profile Picture
    11 on at

    This is exactly what I needed. Thank you so much Ahmed! I will test it out and let you know how it goes.

  • Terrencew Profile Picture
    50 on at

    Hello,

     

    I'm looking to create the same thing for my school. An app for staff to check in /check out. Did you use copilot to create the app? I'm new to this and just looking for some guidance. TIA

  • Robu1 Profile Picture
    1,459 Super User 2025 Season 2 on at

    Hi @Terrencew , 

     

    Copilot was launched on February 7th, 2023. Copilot for power apps was launched on August 18th 2023. 

     

    You could try building this out with copilot using prompts. 

     

    so In copilot, type Build me an employee check in check out  app with options for present, absent or late. then once created you can add further prompts to tweak your app. 

     

    You will need to decide where the data sits. Internally within the app or externally within sharepoint or an excel table. 

     

    Here are steps to creating it in Power apps yourself:  

    1. Create a New Power App: 
      • Open Power Apps and create a new canvas app. 
      • Choose a blank app template. 
      1. Design the App: 
        • Add a Dropdown control to select the location (site) from a predefined list. 
        • Add two Button controls: one for check-in and another for check-out. 
        • Insert a Label control to display messages (e.g., “Already checked in” or “Not checked in yet”). 
        1. Data Source: 
          • Connect your app to an Excel table where you want to store the check-in/check-out data. 
          • You can use OneDrive for Business or SharePoint as your data source. 
          1. Button Formulas: 
            • For the Check-In button: 
            Set(CurrentCheckedInRecord, Patch(EmployeeOffice, Defaults(EmployeeOffice), { Title: Dropdown1.Selected.Value, StaffFullName: User().FullName, StaffEmail: User().Email, CheckIn: Now() })); Navigate(CheckIn, ScreenTransition.Fade)  
            • For the Check-Out button: 
            Refresh(EmployeeOffice); If(!IsBlank(CurrentCheckedInRecord), Patch(EmployeeOffice, CurrentCheckedInRecord, { CheckOut: Now() }) ); Navigate(CheckOut, ScreenTransition.Fade)  
            1. Additional Functionality: 
              • To prevent double check-ins or check-outs: 
                • Use the Visible property of the buttons based on the current state (checked in or not). 
                • Show the appropriate message label when needed. 
                1. Testing: 
                  • Run your app and test the check-in and check-out functionality. 
                  • The timestamps will be recorded in your Excel table. 
              Remember to replace EmployeeOffice with the actual name of your Excel table. Adjust the field names and data source as needed. This basic setup should get you started, and you can enhance it further based on your specific requirements and brand colours!                                                                                                                                                                         If this post helps you, kindly give a Thumbs Up and if it solved your issue, Accept it as the solution to help the other members find it easily.   

                 

               

              Thanks,   

                 

              Robu1.   

  • Solutionm8 Profile Picture
    92 on at

    Hi 
    Interesting idea! Another idea could be to use SharePoint as a data source instead of excel.
    I have developed a similar application and made a video about how to create it:
    Create an Employee Check-In/Check-Out App | Power Apps Tutorial 

    It's missing the location aspect, but that should be pretty simple to implement. Another difference could be that it’s constructed in a way where employees check in and check out only once per day.  

    Hope it provides some inspiration.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard