web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested answer

How to run a batch job every hour on weekdays

(4) ShareShare
ReportReport
Posted on by
In D365 F&O, how do I run a batch job every hour, Monday through Friday only? Using Batch Job Recurrence, I can achieve either weekday or every hour, but not both.
I have the same question (0)
  • Suggested answer
    CA Neeraj Kumar Profile Picture
    497 on at
    How to run a batch job every hour on weekdays
    Hi Praveen,
     
    Hope you get your answer from @Guy Terry answer. 
     
    I am just adding a small point here, while creating multiple jobs with similar recurrence pattern and just changing the scheduled start date/time. You can utilize the "Copy batch job" functionality available on batch form. It will make your process faster.
     
     
    Regards,
    Neeraj Kumar
    If this helped, please mark it as "Verified" for others facing the same issue Keep in mind that it is possible to mark more than one answer as verified
  • Yng Lih Profile Picture
    1,325 on at
    How to run a batch job every hour on weekdays
    Hi,
     
    Agree with Guy Terry to create multiple versions of batch jobs.
  • Suggested answer
    Guy Terry Profile Picture
    28,864 Moderator on at
    How to run a batch job every hour on weekdays
    I think the only way to do this is to create multiple versions of the Batch job. You need one version for each hour that you want the batch job to run; so if you really need every hour, that's 24 versions. But if you need on the hour from 8am to 5pm, that's 9 versions.
     
    For the 8am version of the job, configure the Recurrence pattern to Weeks, and tick Monday through Friday. Set the Start time to 8am and set No end date. This job will now run every weekday at 8am.
     
    Repeat for 9am, 10am, 11am etc.
  • Suggested answer
    Anton Venter Profile Picture
    20,221 Super User 2025 Season 2 on at
    How to run a batch job every hour on weekdays
    Hi,
     
    This would require a small code customization of the batch job itself. A new parameter can be added to the batch job. If this parameter is enabled, the customization checks if it's a weekday or not and only runs the batch job logic if it's a weekday.
     
     (the screenshot below is the parameter dialog from a random batch job)
     
     
     
     
     
     
     
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 189 Super User 2025 Season 2

#2
Yng Lih Profile Picture

Yng Lih 134

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 116

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans