Quantcast
Channel: AX Developer Forum
Viewing all articles
Browse latest Browse all 9880

The way to shutdown axapta using X++!

$
0
0
Hi,All
I found a simple way to shutdown axapta, for your reference!!

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

Enjoy it!

Andy.

Viewing all articles
Browse latest Browse all 9880

Trending Articles