Automatic Schedulling Of Codeunits

libin80libin80 Member Posts: 24
Hi,

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?

Thanks
Libin D

Comments

  • AdministratorAdministrator Member, Moderator, Administrator Posts: 2,499
    [Topic moved from Navision Tips & Tricks to Navision forum]
  • Yaroslav_GaponovYaroslav_Gaponov Member Posts: 158
    Hi

    NAS for run and Session table for check
  • ara3nara3n Member Posts: 9,256
    take a look at Job queue in 5.0. It does what you are looking for.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • ufukufuk Member Posts: 514
    I don't have 5.0. Is it possible to use Job Scheduler without any user logged in with 4.0?
    Ufuk Asci
    Pargesoft
  • themavethemave Member Posts: 1,058
    ufuk wrote:
    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.
  • jlandeenjlandeen Member Posts: 524
    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).
    Jeff Landeen - Sr. Consultant
    Epimatic Corp.

    http://www.epimatic.com
  • ufukufuk Member Posts: 514
    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 :D
    Ufuk Asci
    Pargesoft
  • jlandeenjlandeen Member Posts: 524
    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
    Jeff Landeen - Sr. Consultant
    Epimatic Corp.

    http://www.epimatic.com
Sign In or Register to comment.