This is an example to shut down the Dynamics AX client from x++ code using info class.
void DASShutDownAxapta()
 {
     SysGlobalCache  cache = appl.globalCache();
     info            info;
     ;
 
     cache.set(classstr(info), identifierstr(Autologoff), true);
     info = new info();
     info.shutDown(true);
 }
 
 
this method only works as job when used on some form it only closes that from
RépondreSupprimer