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

Announcements

No record found.

News and Announcements icon
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

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    moved to the d365 forum

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    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
    307,166 Super User 2026 Season 2 on at

    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

    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,363 on at

    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
    307,166 Super User 2026 Season 2 on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 426 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 358

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 353 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans