Close MSD Axapta client or Instance by code in job

Close Axapta client or Instance by code in job. Info is class you can declare object of info class. Info class include shutdown method if you pass true parameter than it will close instance of axapta.

 SysGlobalCache SysGlobalCache1 = appl.globalCache();  
   info      info;  
   SysGlobalCache1.set(classstr(info), identifierstr(Autologoff), true);  
   info = new info();  

Or you can set value in shutdown in user option form .

You can also write following line to close axapta.


It will close axapta forcefully.