Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / How to create a custom...
Finance forum
Suggested answer

How to create a custom batch job

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

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 290,115 Super User 2024 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?

  • WillWU Profile Picture
    WillWU 22,346 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

  • ram_ind Profile Picture
    ram_ind 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

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 290,115 Super User 2024 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.

  • Ludwig Reinhard Profile Picture
    Ludwig Reinhard 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

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

    moved to the d365 forum

Helpful resources

Quick Links

Dynamics 365 Community Update

Welcome to the inaugural Community Platform Update. As part of our commitment to…

Dynamics 365 Community Newsletter - August 2024

Catch up on the latest D365 Community news

Community Spotlight of the Month

Kudos to Mohana Yadav!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,115 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 227,971 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans