Then I went to the AOT > Data Dictionary > Tables > Batch and I opened the table by using the table browser and I saw that the Class ID for this particular Job was 40144.
Then I created a new job and I wrote the following code:
static void ClassNames(Args _args)
{
DictClass dictclass;
;
dictclass = new DictClass(40144);
info(dictclass.name());
}
The info log showed me the name of class that is run by the AX Job. From there I just created a new batch record to run it every night.
No comments:
Post a Comment
Thank you for your thoughts. Your comment will appear in my blog shortly after review.
Have a great day!