AOT object audit Job

By using this job anyone can do audit of all the AOT objects .

static void AOTObjectAudit(Args _args)
{
TreeNode TreeNode;
TreeNode BaseTreeNode;
UtilEntryLevel UtilEntryLevel;
UtilElements utilElements;
#AOT
;

BaseTreeNode = TreeNode::findNode(#TablesPath);
TreeNode = BaseTreeNode.AOTfirstChild();
while(TreeNode)
{
{

utilElements = xUtilElements::findTreeNode(TreeNode);
info(strfmt("Created by %1", utilElements.createdBy));
info(strfmt("Created date %1", datetime2str(utilElements.createdDateTime )));
info(strfmt("Modified by %1", utilElements.modifiedBy));
info(strfmt("Modified date %1",datetime2str(utilElements.modifiedDateTime)));
}
break;
TreeNode=TreeNode.AOTnextSibling();
}
}

Comments

Popular posts from this blog

Running runnable class through URL in Dynamics 365 for Operations

D365FO Use of FileUpload control to Read CSV file

D365FO Send Report as email attachment