Wednesday, August 18, 2010

Start batch jobs automatically in Axapta

If somebody is looking for a way to automatically start an existing batch-job, here I will show you the simple way under Windows XP environment. Before we start, it is assumed you have the basic knowledge to set up batch jobs in Axapta.
Okey, here we go:

1. Create a Class with Extend sysstartupcmd it will look like this

class finalrun extends SysStartupCmd
{
       Finalbatch           finalbatch;
}

2. Create A inforun method in this class like this

void infoRun()
{
        /*Creat your Logic Here*/
        Info(“Job Running Correctly”) ;
}

3. Create a Configuration File From axapta utility.
4. Give your class name in it’s startupcommand Filed

No comments:

Post a Comment

Conversion of Disposition code, code was not specified - Error in D365 F&O for inter company purchase order return

 We crated the return order for inter company purchase order  and created a Item Arrival Journal through Arrival Overview in corresponding c...