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 :
Finance | Project Operations, Human Resources, ...
Suggested answer

How to create a custom batch job

(0) ShareShare
ReportReport
Posted on by 70

Hi,

i want to settle the sales order invoice using general journal . 

my requirement is that i need to create custom batch using query (in query filter user will choose the type of journal name) to do the settlement.

how to create a custom batch job using query in d365

I have the same question (0)
  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: how to create a custom batch job in d365

    moved to the d365 forum

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: how to create a custom batch job in d365

    Hi ram ind,

    Can you provide more details on how and what you try to settle exactly?

    A simplified example would help here.

    Many thanks,

    Ludwig

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    300,190 Super User 2025 Season 2 on at
    RE: how to create a custom batch job in d365

    Hi Ram,

    The standard Dynamics 365 application contains a lot of examples for periodic tasks including a query to be able to set filters. E.g. you can review the logic used for the 'Journalizing' task (GL > Periodic tasks), but there are many others using the same pattern.

  • ram_ind Profile Picture
    70 on at
    RE: How to create a custom batch job

    Hi all,

    customer will create sales order using third party api and in D365fo we will do the bulk invoice for the created sales order using batch

    customer will also create bulk of general journals to do the settlement for the inoiced sales orders

    in that we need to created custom batch and do that settlement and journal posting process

    how to do that

    i have created batch job using sysoperationfarmework and query,contract,service,controller class

    when i click my mentu item i get the message that "Batch job scheduled"

    after that the batch still in waiting stage

    i tried to do debug but my debugger is not getting attached in service class . so i dont whats happening inside my class

  • WillWU Profile Picture
    22,361 on at
    RE: How to create a custom batch job

    Hi Ram,

    How did you debug your batch job, you should select batch.exe when you attach process before executing your codes.

    Please check:

    community.dynamics.com/.../ax7-d365-how-to-debug-batch-jobs

  • André Arnaud de Calavon Profile Picture
    300,190 Super User 2025 Season 2 on at
    RE: How to create a custom batch job

    Hi Ram_ind,

    Have you verified if the Microsoft Dynamics 365 Batch service is running on your VM?

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 582 Most Valuable Professional

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 542

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans