I need some help to run 2 different newly developed codeunits in NAV 4.0, automatically at a scheduled time even if no users are not logged in. Is their any way to do it?
I don't have 5.0. Is it possible to use Job Scheduler without any user logged in with 4.0?
Not the job schedular, but what I do is start a client on the same server that runs Navision, and start the job schedular there, so it is always running.
Another option I've suggested/implemented to clients in the past is to use NAS and build a codeunit that mimics the functionality of the Job Scheduler form, with a timer & calls the underlying jobs using the existing job scheduling logic.
This way you're not re-inventing the wheel by writing everythying yourself (i.e. you use as much of base Navision Job Scheduler functionality as possible) and just build the piece to automate it.
The very important thing to note when building this kind of automation is that all the processes being invoked can run in a GUI-Less client - this means no progress bars, no messages or command prompts (as that would make things fail when run using NAS).
In our system I also defined a virtual terminal server user and this session is always open. I have wondered if it is possible to run scheduler without a licensed user
I don't spend too much time dealing with licensing (you're probably better off asking Microsoft or your NSC) but heres things as I know:
- you get license to run 1 NAS instance with every Navision Server
- you can order as many as you would like
- you will need to have 1 NAS instance per company (unless you want to write code to use intercompany or use ChangeCompany)
- each NAS will use a Navision user license
Comments
NAS for run and Session table for check
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Pargesoft
This way you're not re-inventing the wheel by writing everythying yourself (i.e. you use as much of base Navision Job Scheduler functionality as possible) and just build the piece to automate it.
The very important thing to note when building this kind of automation is that all the processes being invoked can run in a GUI-Less client - this means no progress bars, no messages or command prompts (as that would make things fail when run using NAS).
Epimatic Corp.
http://www.epimatic.com
Pargesoft
- you get license to run 1 NAS instance with every Navision Server
- you can order as many as you would like
- you will need to have 1 NAS instance per company (unless you want to write code to use intercompany or use ChangeCompany)
- each NAS will use a Navision user license
Epimatic Corp.
http://www.epimatic.com