Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

How to create batch for recurrent process ?

(1) ShareShare
ReportReport
Posted on by 203
Hi guys,

I had an old process for update/refresh some tables which was run by clicking a menu item action.

Now i need to export this process to a recurrent Batch job which will be run everyday to refresh my tables, but without having to click action button.

How could i do that ?

Regards.
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 on at
    How to create batch for recurrent process ?
    When you create a batch process using SysOperation Framework, as Martin suggested, it will generate a dialog for you. In that dialog itself you can set the recurrence, you can run that synchronously or asynchronously etc. If you follow the process suggested by Martin, then you will understand how to set the recurrence.
  • Awaxx Profile Picture
    Awaxx 203 on at
    How to create batch for recurrent process ?
    Hi Martin

    Thanks again.

    Could i ask how to manage recurrency for this process here or should i create a new thread ?

    Regards
  • Martin Dráb Profile Picture
    Martin Dráb 230,371 Most Valuable Professional on at
    How to create batch for recurrent process ?
    You can add it to a menu, you can access a menu item through a URL, you can add a batch manually through a form and administrators can run the controller directly through SysClassRunner.

    And yes, both frameworks can be used for recurring batches. I know it was a requirement.
  • Awaxx Profile Picture
    Awaxx 203 on at
    How to create batch for recurrent process ?
    Hi Martin,
     
    Thanks for this link.

    This way will be useful for a recurrent batch job and could be launch without menu item ?

    Regards.
  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,371 Most Valuable Professional on at
    How to create batch for recurrent process ?
    There are two frameworks for this purpose: RunBase and SysOperation.
     
    I recommend the latter, because it'll generate the dialog for you, you don't have to deal with serialization (pack/unpack) and you can then easily choose the execution mode. Look into SysOperation introductionto get a better idea.

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans