Arion Banki currency importer

It is not often that I post a solution that is intended to be used in Iceland only.  Here is one. Arion Banki is one of the major national banks in Iceland and they want to support Dynamics NAV users.  On their website you will...
Continue reading »

The Kill Idle batch

In an earlier post I showed how to kill idle sessions from C/AL code.  I have been asked to provide a batch that works with Job Queue. To set this up please add a field to table 91.  Field name is “Kill Idle Duration” and...
Continue reading »

Enable Inventory Adjustment from Job Queue

Today I posted a new feedback to Microsoft.  My experience is that companies that use inventory should execute Inventory Adjustment with the Job Queue every night.  To be able to do this a change is required to the OpenWindow trigger in codeunit 5895. The old code is...
Continue reading »

Job Queue stops when lock time out occurs

Running NAS with Job Queue will start a timer to process Job Queue Entries every two seconds. In the original code the Timer is disabled before checking the Job Queue Entries and then enabled again after the process. If NAS will not be able to...
Continue reading »

Dialog in Dynamics NAV

In so many cases when writing code for Dynamics NAV you want to display a dialog to notify the user or open a progress dialog.  Today, we always need to consider that the code might be running from a web service where the GUIALLOWED variable is...
Continue reading »

Using Web Services for your NAS jobs

In NAV 7 the NAV Application Server will no longer be supported.  The Job Queue has been redesigned to support the new STARTSESSION feature that will create a new session on the service tier to execute a given task. In NAV 2009 and going forward...
Continue reading »

Batch Job to Quit if it is blocking

I have a batch job that is running regularly to adjust items.  Since this is running during working hours I want to stop the batch if it is blocking another user. This is the loop that my batch does. [code htmlscript=”false”]FOR i := 1 TO...
Continue reading »

E-Mailing PDF Report with Job Queue

One of my clients asked for a automated report delivery every morning.  Since Job Queue was already running I decided to create a way to have Job Queue print the report to PDF and email it as an attachment. This example uses the E-Mailer Report...
Continue reading »