Microsoft Dynamics 365 Blog

By Nikolai L’Estrange, from TVision Technology Ltd. in the UK

Abstract

Track things that happen in other NAV Sessions.

Cross Session Events

 

Problem

In Microsoft Dynamics NAV you can fire a function whenever something changes within your session (and from NAV 2016 this is even easier with the new Event model), however there is not an easy way to know what is happening in other sessions. Sometimes you would like to know what has happened since your last read, without reading everything again, e.g. when you need to pass a large dataset to a Control Add-in.

A common way of handling this with Ledger Tables is to make note of the last record you read, and continuously poll to see if there are any new records. However this is restricted to strictly sequentially entered tables.

Read more on the design patterns wiki or check the original article on Nikolai’s blog.

We're always looking for feedback and would like to hear from you. Please head to the Dynamics 365 Community to start a discussion, ask questions, and tell us what you think!