There is a class available in AX SysSQLSystemInfo. Using this we can get the current database name
static void databse_name(Args _args)
{
info(SysSQLSystemInfo::construct().getloginDatabase());
}
Args args; ReportRun report; salesLineProductPartProd salesLineProductPartProdLocal; ; ...
No comments:
Post a Comment