Hemamalini Balamurugan

Monday, February 17, 2014

Run Batch Job automatically in Ax 4.0

In Class 'SysStartupCmdBatchRun', add the code in infoRun method.

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

    batchRun.parmUseForm(true);
    batchRun.parmGroupId(parm); //added
    batchRun.run();
}
in the client configuration, mention the batchgroup name like startupcmd=batch_invoice
Posted by Malu at 3:11 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2018 (1)
    • ►  December (1)
  • ►  2016 (10)
    • ►  November (1)
    • ►  October (5)
    • ►  March (1)
    • ►  February (3)
  • ▼  2014 (39)
    • ►  July (15)
    • ►  May (1)
    • ►  April (6)
    • ▼  February (17)
      • Creating Custom AIF Service in Ax 2009 / 2012
      • Run Batch Job automatically in Ax 4.0
      • Batch Job
      • Dependent lookup in dialog class
      • Create new project through X++
      • Creating context (Right-click) menu for display field
      • Using DictTable
      • Using sub-query through X++
      • Populating Data source Using Temp Table
      • Using external websevice
      • Create XML through X++
      • Creating new form through X++
      • Using document service (AIF)
      • Export Data into CSV
      • DB Synchrozation through X++
      • Updating fields without affecting system fields value
      • Creating Workflow in Ax 2012
  • ►  2013 (5)
    • ►  July (5)

About Me

My photo
Malu
View my complete profile
Simple theme. Powered by Blogger.