X++ Get Admin access

static void AdminOn(Args _args)
{
    SecurityUtil::sysAdminMode(true);
    info("AdminOn");
}


static void AdminOff(Args _args)
{
    SecurityUtil::flushAll();
    SecurityUtil::sysAdminMode(false);
    info("AdminOff");
}

Comments

Popular posts from this blog

What is Microsoft Power Platform?

AX 2012 Build process using AZURE DEVOPS

Microsoft.WindowsAzure.Storage.StorageException: The remote name could not be resolved: 'vmname.table.core.windows.net'