X++ Code to get all the objects from the AOT

static void RB_AOTObjects1(Args _args)
{

treeNode treeNode,childNode;

TreeNodeIterator rootNodeIterator;

xInfo xInfo = new xInfo();

#AOT
#TreeNodeSysNodeType
;

treeNode = xInfo.findNode(#AOTRootPath);

treeNode = treeNode.AOTfirstChild();

while(treenode)
{
Print treenode.AOTname();
Print "----------------------------------------------------------------------------------------";
if (treeNode)
{

rootNodeIterator = treeNode.AOTiterator();
childNode = rootNodeIterator.next();
while (childnode)
{
print childNode.AOTname();
pause;
childNode = rootNodeIterator.next();
}

}
Print "------------------------------------------------------------------------------------------";
treeNode = treeNode.AOTnextSibling();
}

}

No comments:

Post a Comment

D365 F&O Release Pipeline Step by Step Configuration Without ISV's

  Step-by-Step Guide: Creating D365FO Build and Deploy Pipelines Azure DevOps Build Pipeline I will walk through the standard procedures...