Find AOT objects by property

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

 

Search

About

DaxOnline.org 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