Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Batch job consolidation

Posted on by 2,985

Hi All,

I have a four batch job which is having dependencies.I want to create a new batch job which includes all the dependency 4 batch jobs logic. I dont want to add it as a seperate task in batch form.Is there any logic behing to call multiple classes in a single class.

*This post is locked for comments

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,280 Super User 2024 Season 2 on at
    RE: Batch job consolidation

    Hi Kavitha,

    To be able to suggest something, you need to provide coding or summarized pseudo coding how you did the 4 jobs before and now 1 class with all in it.

  • Pravasti AK Profile Picture
    Pravasti AK 2,985 on at
    RE: Batch job consolidation

    Hello Experts,

    Any update on this .

    Thanks,

    Kavitha

  • Pravasti AK Profile Picture
    Pravasti AK 2,985 on at
    RE: Batch job consolidation

    Hi Andre,

    Please find below the details:

    Creating a purchase order-1st batch.

    Confirming the PO - 2nd batch.

    Invoicing the PO -3 rd batch.

    Sending email the report -4th batch.

    So all the batch job running sucessfully seperately all have dependencies. They extending each class one after the other .

    My task is to consolidate all four batch job .So i create a class which uses the logic of all 4 classes its running all the four process in a fine way but when i try to add in a batch its only creating the PO not processing the other.

    Thanks,

    Kavitha.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,280 Super User 2024 Season 2 on at
    RE: Batch job consolidation

    Hi Kavitha,

    Can you provide some more information where you exactly select the batch processing job? Can you describe the steps of your attempt?

  • Pravasti AK Profile Picture
    Pravasti AK 2,985 on at
    RE: Batch job consolidation

    Hi Andre,

    I can do the coding by constructing all the classes in the main method , from the AOT  when i try to run the class its processing all four batch perfectly and getting output as expected but if i select batch processing checbox to enable its executing only the first job alone.

    Thanks,

    Kavitha

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,280 Super User 2024 Season 2 on at
    RE: Batch job consolidation

    Hi Kavitha,

    Do you need a guidance how to do this using x++ coding or do you want to use the user interface and set it manually?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans