Find AOT objects by property

static void findAOTObjectByProperty(Args _args)
  TreeNode treeNodeTables = TreeNode::findNode(#TablesPath);
  TreeNode treeNode;
  str strPropertyName = 'SaveDataPerCompany';
  str strPropertyValue = 'No';
  treeNode = treeNodeTables.AOTfirstChild();
  while (treeNode != null)
    if (treeNode.AOTgetProperty(strPropertyName)== strPropertyValue)
    treeNode = treeNode.AOTnextSibling();



About is free platform that allows you to quickly store and reuse snippets, notes, articles related to Dynamics AX.

Authors are allowed to set their own AdSense units.
Join us.

Blog Tags