How to run codeunit one time by day.

JTProJTPro Member Posts: 169
Hello all,

I hope, that you feel rest after holiday break.\:D/
Before new year I have to force one more problem. I need to run codeunit one time by day. The problem is that my client's license doesn't contain granule for NAS or JOBS. Who can give me a hint how to implement such functionality using different method?

I wish you happy new year!

Best regards
jtpro
Navision Application Version: 4.0SP1
Navision Database Version: 4.0

Comments

  • DenSterDenSter Member Posts: 8,307
    Every Navision license should come with at least one instance of NAS, so that is one possibility. If they are already using it, they will need another one if that is how you're going to implement it.

    You don't need Jobs to run the job scheduler, that is in the service management area. You could create something that looks like the job scheduler in your customer's license range, or you could persuade them to buy the granule to run the scheduler.

    It has to come from somewhere you know. You can't use something if they don't have the license for it, and you can't create something for them if they don't want to get the right license for it.

    I'd say either they buy the job scheduler (I'd have to find out what granule you need for that) or you copy that functionality for them into a range that is on their license.
  • ara3nara3n Member Posts: 9,257
    There is also expandit . It allows you to do backup. You can also schedule to run reports, codeunits, etc.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • kinekine Member Posts: 12,562
    Or you can use something like :

    Singleinstance codeunit with timer, runned from CU1 for each user which have rights to run the report (or something you want) and you need something which will say you, that the report was runned for this and this day... (to not run the report more times...) or you can add setup which user will run this etc... but of course, it assumes, that the report will run on the client - it means, the client must be running in time etc.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • JTProJTPro Member Posts: 169
    Thank you all for replies,

    Ara3n, could you give me direction to knowledge about this expandit?

    Best regards
    jtpro
    Navision Application Version: 4.0SP1
    Navision Database Version: 4.0
Sign In or Register to comment.