The AL developer preview is still evolving with frequent updates. Follow us on the Dynamics NAV Team Blog for the announcements.
ISSESSIONACTIVE Method (Session)
Tests if the specified SessionID is active on the Dynamics 365 for Financials service instance where it was started.
Ok := ISSESSIONACTIVE(SessionID)
SessionID Type: Integer The ID of the session that you want to test if it is still active.
Property Value/Return Value
True if a session with a specified ID is active on the Dynamics 365 for Financials service instance; otherwise, false.
Use this method to test if a session has completed or is still active, for example if you want to check that a session started with STARTSESSION is still running.
The method looks for sessions on the local machine.