Announcements
Hi everyone,
I have a Power Apps Canvas app and I want to track user sign-in and logout history.
I need to:
Capture when a user opens the app
Capture when a user logs out or exits
Store user email and date/time in a data source (Dataverse or SharePoint)
Since Canvas apps don’t have a built-in logout or app close event:
What is the recommended approach?
Is using OnStart and a Logout button the best practice?
Any simple guidance or examples would be appreciated.
Thanks! 🙏
Patch( Logfile, Defaults(Logfile), { NameField: User().FullName, ActionField: "Logged in" TimeField: Now() } )
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 638
Haque 317
WarrenBelz 315 Most Valuable Professional