Home > X++ stuffs > Dynamics X++ Job

Dynamics X++ Job

Hi All,

 

Blogging is my passion. So i have decided to write my own blog for the upcoming ERP product – Dynamics AX. Blog is intended to provide code snippets, information on AX. Here is my first sample job

 

Calling a X++ job from another job

 

static void Jobs_ExecutingJob(Args _args)

{

    Args                    args;

    ;

   

    args = new Args();

    args.name(identifierStr(Jobs_MyJob));

   

     // Create a MenuitemAction as Jobs_MyJob & Object Type should be set to Job

     new menuFunction(menuItemActionStr(Jobs_MyJob), MenuItemType::Action).run(args);

}

 

 

static void Jobs_MyJob()

{

    ;

    info("Infolog demo.");

}

  

For User Friendly Infolog refer http://blogs.msdn.com/mfp/pages/the-user-friendly-infolog.aspx 

Categories: X++ stuffs
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment