Dynamics Ax Programming Technical

Dynamics Ax creating a batch job from code


Here is a simple code snippet to create Batch jobs from code. This convenient when starting a heavy load job from a user interface and still keep the client responsive.

TSTSalesOrderUpdate tSTSalesOrderUpdate;
BatchInfo           batchInfo;
BatchHeader         batchHeader;
tSTSalesOrderUpdate = TSTSalesOrderUpdate::construct();
batchInfo   = tSTSalesOrderUpdate.batchInfo();
batchInfo.parmCaption("Test from code");
batchHeader = BatchHeader::construct();

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: