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

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

How to calculate idle time in navision2013 onward version in cal coding ??

(0) ShareShare
ReportReport
Posted on by 35

i want to calculate idle time for particular user  navision in cal .

how we can calculate how much time my session was idle or any user session is idle ?

in navision2013 on-words .

*This post is locked for comments

I have the same question (0)
  • keoma Profile Picture
    32,729 on at
  • Alexander Ermakov Profile Picture
    28,094 on at
    RE: How to calculate idle time in navision2013 onward version in cal coding ??

    There are setting you can operate with in order to kill idle sessions for some period. Please follow Understanding and Configuring Session Timeout: msdn.microsoft.com/.../dn584639(v=nav.71).aspx

    This might be also helpful: robertostefanettinavblog.wordpress.com/.../nav-services-sessions-counting-killing-timeout

  • Suresh Kulla Profile Picture
    50,233 Super User 2025 Season 2 on at
    RE: How to calculate idle time in navision2013 onward version in cal coding ??

    As far i know i don't there are built in functions to calculate idle time for a user, you might need to check the session event table and calculate based on the event date.

  • Ganeshchede Profile Picture
    35 on at
    RE: How to calculate idle time in navision2013 onward version in cal coding ??

    hi sir thanks for reply

    this is not i want ,

    i want to calculate idle time for any particular user or session in cal in navision2013+

  • Ganeshchede Profile Picture
    35 on at
    RE: How to calculate idle time in navision2013 onward version in cal coding ??

    HI sir ,

    Session table i am gating only log in datetime for any session but i cant get that session how much time idle from login .

    i want to calculate how much time user is not active from login time that activity or registered time of activity session i am not gating in navision till now .

  • Suggested answer
    Amol Salvi Profile Picture
    18,698 on at
    RE: How to calculate idle time in navision2013 onward version in cal coding ??

    Check this link

    stoneridgesoftware.com/how-to-create-a-kill-session-or-idle-session-timeout-in-nav

  • Suggested answer
    Tharanga Chandrasekara Profile Picture
    23,118 on at
    RE: How to calculate idle time in navision2013 onward version in cal coding ??

    I do not think there is builtin function to achieve what you want. In that case what I would do is, I would write a stored procedure in SQL to return idle time for users and from C/AL call that SP.

  • Suggested answer
    4BzSoftware Profile Picture
    6,073 on at
    RE: How to calculate idle time in navision2013 onward version in cal coding ??

    Hi Bhagwan,

    We're looking for this for more than 3 years. Until Microsoft supports it as a native function like GLOBALLANGUAGE, COMPANYNAME, USERID, SESSIONID... We haven't seen it available with CAL.

    You need a special way as our tool community.dynamics.com/.../idle-session-management

  • Suggested answer
    Maneesha Profile Picture
    5,891 on at
    RE: How to calculate idle time in navision2013 onward version in cal coding ??

    Dear Bhagwan  ,

    There are no function to calculate user wise idle time , NAV only give Idle user time out nothing else ,

    But if you looking for the critical reason or mandatory requirement ,

    you can use "Change log Entries" and  get the count of user active time period 

    Further you can deal with Change log Entries table on DB level and make triggers to capture user active time and idle time period(NOTE : please get some additional help from DB admins before you doing this )

    because this will be highly effect to your data base and the system

    Please verify the answer if you got help to resolve your issue    

  • Suggested answer
    keoma Profile Picture
    32,729 on at
    RE: How to calculate idle time in navision2013 onward version in cal coding ??

    @maneesha: really nice idea, but change log should only be used to log changes of master data. so if adding logging for productive data, then it could decrease performance very badly.

    as an idea, if you do that, use e.g. some of the ledger entry (g/l entry, item ledger entry, customer/vendor ledger entry, ...) tables to log the user activities and in the change log setup log only one field per table.

    best would be to cover the issue with a trigger in the sql database. better for the performance.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Saurav.Dhyani Profile Picture

Saurav.Dhyani 2 Super User 2025 Season 2

#2
RK-25090803-0 Profile Picture

RK-25090803-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans