Blogs, How-to, How-to
Save time. Run tasks automatically with these tips
15 February, 2018
3min. reading time
The desire for better insight and a greater level of convenience probably ain’t new for you. Whether it is your own organization wants that one or multiple functions are launched during a certain status or your customers who require a weekly overview of the stored and/or transported goods. For one task or customer that is not such a big problem. That will cost you max 5 minutes per week. But what happens when all your customers expect a weekly update? Or when the number of tasks per process step continuously accumulate? How much time do you spend on managing these activities on average? And – question of conscience – how often do you accidentally forget to run a task or report?
Save yourself the trouble and frustration. Let Dynamics NAV automatically run tasks with job queue entries.
Specific functions, codeunits and reports can be performed with job queues in Dynamics NAV. For example, printing PDF files and/or emailing the document. But also generating reports or retrieving and sending integration messages.
Get started with job queues
Are you ready to make your work easier and start using the convenience of job queues in your Dynamics NAV environment? Then there are two options to add these to your workflow: once from a report or directly from the job queue entries. To make it as easy as possible, I have shared a “step-by-step” guide using print screens.
Once from a report
Directly from job queue entries
The most important fields
|Object type to run:||Function / report / codeunit|
|Object ID to run:||Function no. / report no. / codeunit no.|
|Job queue category code:||With this code, you can ensure that tasks with the same code are not executed at the same time to prevent locking|
|Run on day:||With this option, you can set on which days the task queue is to be executed|
|Starting / Ending time:||Use a starting and ending time to specify the timeframe within the task can be performed.|
|No. Of minutes between runs:||Every few minutes the task must be re-executed within the starting and ending time|
After all the data have been filled out, you must click on the button “Set Status to Ready” in order to carry out the task.
After completing the task, a message is logged in “Log Entries”:
In the log entries, you can check whether the task has been executed successfully or if an error encountered.
Overview of standard functions
Within the job queue entries, various functions are standard available to automate tasks.
“Function 8” is particularly a very useful function. It allows you to set that when a task queue is in the status “error”, it automatically resets to status “ready”. Allowing the system to re-run the task.
Add job queue entries to your role center
Do you work a lot with job queues and would you like to keep an eye on ongoing actions? Then simply add (personal) job queues to your role center. Making it possible to see the status of tasks at a glance:
Tip: ensure you have the right authorization
Job queues are performed based on the permissions of the user who activated the task. It is therefore also important that the user who activates the task has the correct authorization to carry out the report, codeunit or function. It is preferable for this user to be a member of the permission set SUPER.