Announcements
No record found.
I want to fetch the login hours(sum) using user to and from date, it this possible to write a job for this? what should be the line of code in X++ and relation?
Regards
Ayusri
Hi Ayusri,
Can you elaborate on the exact requirement? Do you need information about current active users or historical information? You can find information in the SysUserLog table. If a session is still active, there is no online time available yet.
Hi Aayushii, You can check onlineTime, onlineTimeHours method in SysUserLog Table. You can fetch it by using userId, createdDateTime, logoutDateTime and re-using the logic written in the specified methods in your code.
Andre: This thread is related to the below thread
community.dynamics.com/.../how-to-check-user-login-detail
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 Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 518 Super User 2026 Season 1
Giorgio Bonacorsi 431
Adis 280 Super User 2026 Season 1