Sunday, July 3, 2016

Check Developer, System Admin access in ax 2012 x++

static void CheckDevSysAdmin(Args _args)
{
    SecurityRights  rights = SecurityRights::construct();
    info(strFmt("%1",rights.isDeveloper()));
    info(strFmt("%1",rights.isSystemAdministrator()));
}

No comments:

Post a Comment

Convert Call stack to readable format in D365FO X++

//Input --container _xppCallStack = xSession::xppCallStack();  Public static str POL_formatXppCallStack(container _xppCallStack, int _skipFr...