Tuesday, 15 September 2015

Get list of AOT elements(objects) through code in Dynamics AX 2012

How to get list of AOT elements(objects) through code in Dynamics AX ?
Here  is the code:
UtilElements    UtilElementsLocal;
  
while select * from UtilElementsLocal
    where UtilElementsLocal.recordType == UtilElementType::ExtendedType
    && UtilElementsLocal.utilLevel == global::currentAOLayer() 
{
      info(UtilElementsLocal.name) ;
}

No comments:

Post a Comment