mercredi 28 décembre 2011

How to shut down axapta through code

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);
}


1 commentaire:

  1. this method only works as job when used on some form it only closes that from

    RépondreSupprimer