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) ;
}