Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Job Queue > serial call of specific jobs in a specified order

(0) ShareShare
ReportReport
Posted on by 144

Hi,

we have a couple of jobs that have to run every night one after the other in a given order. Now I could achieve this by calling the jobs via a codeunit. However, I would like to have the jobs executed individually via the job queue. By including the jobs in a category, I can make sure that they run one after the other. But do I have any influence on the order in which they are called up, or is that just random, like with events?

Thanks in Advance
Ralf

  • Suggested answer
    YUN ZHU Profile Picture
    85,670 Super User 2025 Season 1 on at
    RE: Job Queue > serial call of specific jobs in a specified order

    Hi, Personally I don't recommend separating these successive processes, you should put them in one execution code and run them sequentially.

    It's a good idea to split the processing time, but if one of them takes too long, or there is an exception handling such as an error, it will not work properly.

    If you want to divide these into different Job Queues, you need to read whether the previous one is completed in the next processing. Run when done.

    Hope this helps as well.

    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,029 Moderator on at
    RE: Job Queue > serial call of specific jobs in a specified order

    Sounds like a good plan!

  • neckit Profile Picture
    144 on at
    RE: Job Queue > serial call of specific jobs in a specified order

    I think the best way is actually to put the jobs to be executed at night into a category with a time delay.
    If an error should then occur in a job, I then first have to increase the start times of the subsequent jobs before I set the faulty job to Ready again.

    Thanks!

  • Suggested answer
    Amit_Sharma Profile Picture
    2,547 on at
    RE: Job Queue > serial call of specific jobs in a specified order

    Hi,

    Adding info

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-job-queue

    Regards

    Amit Sharma

    www.erpconsultors.com

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,029 Moderator on at
    RE: Job Queue > serial call of specific jobs in a specified order

    I do not think that the standard system offer that kind of control on the job queue.

    So i think you have to customize it in one form or another at least as long as you want the jobs to run more than once every day.

    If you want them to run only once a day you could control it by using start time and stop time.

  • Suggested answer
    DAnny3211 Profile Picture
    9,278 Moderator on at
    RE: Job Queue > serial call of specific jobs in a specified order

    Hi

    no, it is not causal... the jobs follow the order you have decided on.

    learn.microsoft.com/.../devenv-job-queue

    DAniele

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans