Monday, August 04, 2008

Running batch jobs automatically in Dynamics AX

For learning how to create and launch batch jobs in Dynamics AX, please take a look to all topics in http://msdn.microsoft.com/en-us/library/aa549082(AX.10).aspx.

If we want to configure an automatic batch job server, we need to modify the class SysStartupCmdBatchRun, method infoRun, as follows:

void infoRun()
{
    batchRun batchRun = new batchRun();
    ;

    batchRun.parmUseForm(true);
    batchRun.parmGroupId(parm); // added
    batchRun.run();
}


And for a batch group named "myGroup" for example, we can use the Microsoft Dynamics AX Configuration Utility to specify the "Command to run at application startup:" as Batch_myGroup. This enable the AX client to run every batch job in this group.



We can also use the command line as {path}\ax32.exe startupcmd=batch_myGroup.

2 comments:

evision said...

I have gone through this blog. I found it very interesting and helpful. Now a days I am doing my work from my home only.
And this blog is really doing great for me. And got extra income from my home.

online jobs

Kon Abaga said...

i have gone through your site information and it is the sae oppertunity that i was looking for thr facilities,
the process that what you are offering , are perfectely matched to my expection, very soon you will get
responce from my side


online job


View My Stats