I'd like to create a batch job in X++ for Microsoft Axapta 3.0 (Dynamics AX).
How can I create a job which executes an X++ function like this one?
static void ExternalDataRead(Args _args)
{
...
}
I'd like to create a batch job in X++ for Microsoft Axapta 3.0 (Dynamics AX).
How can I create a job which executes an X++ function like this one?
static void ExternalDataRead(Args _args)
{
...
}
Here's the bare minimum needed to create a batch job in AX:
Create a batch job by creating a new class that extends the
RunBaseBatch
class:Implement the abstract method
pack()
:Implement the abstract method
unpack()
:Override the
run()
method with the code you want to execute:Add a static
main
method to your class to create an instance of your class and call the standardRunBaseBatch
dialog:If you want your batch job to have a description in the batch list, add a static
description
method to your class: