Announcements
No record found.
Hi,
I have a requirement to schedule a Batch Job through X++ code.I came across below link,https://community.dynamics.com/365/financeandoperations/b/365foandaxtechnicalworld/posts/batch-job-schedule-x
But above blog explains scheduling of RunBaseBatch job.Can anyone please tell how can I schedule SysOperationFramework batch job along with Parameters?
Here is a simplified example from a white paper called Introduction to the SysOperation framework:
SysOpFindPrimeNumbersCleanupController cleanupController = new SysOpFindPrimeNumbersCleanupController(); BatchInfo batchInfo = cleanupController.batchInfo(); SysRecurrenceData recurrenceData = SysRecurrence::defaultRecurrence(); // start in x minutes from now so that the job can be inspected via the batchjob // form before it starts. recurrenceData = SysRecurrence::setRecurrenceStartDateTime(recurrenceData, DateTimeUtil::addMinutes(DateTimeUtil::utcNow(), 1)); recurrenceData = SysRecurrence::setRecurrenceNoEnd(recurrenceData); // Set the minimum recurrence interval of 1 minute recurrenceData = SysRecurrence::setRecurrenceUnit(recurrenceData, SysRecurrenceUnit::Minute, 1); batchInfo.parmRecurrenceData(recurrenceData); // This will add the job to the batch table cleanupController.parmExecutionMode(SysOperationExecutionMode::ScheduledBatch); cleanupController.doBatch();
Hello Rhushikesh- You can read more about here: SysOperation Framework Overview | Microsoft Docs
thank you.
Thanks Martin for prompt response.
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 658
André Arnaud de Cal... 468 Super User 2026 Season 1
Syed Haris Shah 333 Super User 2026 Season 1