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 / Get the last connectio...
Power Apps
Answered

Get the last connection date and time

(0) ShareShare
ReportReport
Posted on by 33

Hello everyone, 

 

i want to make a "notification" icon that the "visible" is conditioned if a new item(s) was recording in database since the last connection of the user. I try to search a global variable like

 

user().lastconnectiontime

But i can't find out how to build it since the user() has no field like this. 

 

Thanks for yours upcoming replies.  

Categories:
  • Verified answer
    SebS Profile Picture
    4,882 Super User 2026 Season 2 on at

    Hi @IcemanY15 

     

    There is no function like that.

     

    What You can do :

     

    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})

     

    You will be able to see User Email address and use Created Column to determinate Date and Time when this record was created what will be last login Time and Date

     

     

  • IcemanY15 Profile Picture
    33 on at

    Thank you for your answer 🙂 

    I hope Microsoft could implement some session variables in future. 

     

    I'll do this way. 

    [CLOSE]

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 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard