Posted on

How to Shutdown AX Client ?

To Shutdown axapta AX, Check this code:

public static void shutdownAxapta()
{
SysGlobalCache cache = appl.globalCache();
info info;
;
cache.set(classstr(info), identifierstr(Autologoff), true);
info=new info();
info.shutDown(true);
}

Try this code as well:

static Void DASShutDownAxapta()
{
SysGlobalCache cache = appl.globalCache();
info info;
;

cache.set(classstr(info), identifierstr(Autologoff), true);

info = new info();
info.shutDown(true);
}

instead You can use infolog.shutdown(true); directly

Leave a Reply

Your email address will not be published. Required fields are marked *