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 / Get last logon (date a...
Power Apps
Unanswered

Get last logon (date and time) or usage for users in PowerApps

(0) ShareShare
ReportReport
Posted on by

For reporting purposes, I need to capture the last log in timestamp to the app, even if the user has not done any modifications or updates.

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    You can implement a method whereby you capture, in the OnStart of the app, the user and date and store it into a logging list.

    Your other option is to attach the Azure App Insights to gather usage and other statistics for your app.

     

    I hope this is helpful for you.

  • Community Power Platform Member Profile Picture
    on at

    Thank you @RandyHayes . Can you share me a video or blog post that explain this in details. So i can follow the steps please?

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    Thank you @RandyHayes . Can you share me a video or blog post that explain this in details. So i can follow the steps please?

  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    I don't know if you are referring to option 1 or 2.

    I don't have any reference to anything like that.  I could walk you through the steps, but a specific link...I have none.

    I am sure there are some blogs or videos out there that might attempt to describe the process.

     

    For the first option, it is quite simple.  

    1) Create a list and call it what you want.  Something like AppLog 

    2) Add that list as a datasource to your app.

    3) In your OnStart, add the following formula:  Collect(AppLog, {Title: User().Email})

     

    Now, you will have a running log.  Every time a user goes into the app, a new record is created with their email as the title column.  The created time will indicate the time.

     

    However, for the second option, there is a doc that describes more about doing that.

  • Community Power Platform Member Profile Picture
    on at

    thank you @RandyHayes  first step worked.

     

    can i get the time the user logon, i can only see email on the title column of the list

  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    Yes, the date and time are in the Created column.  That all happens for you automatically.

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard