public static void main(Args _args)
{
var entityNames = Microsoft.Dynamics.Ax.Xpp.MetadataSupport::GetDataEntityViewNames();
var enumerator = entityNames.GetEnumerator();
while (enumerator.MoveNext())
{
var EntityName = enumerator.Current;
Info(strFmt("The Entity Name is %1",EntityName));
var DataEntity = Microsoft.Dynamics.Ax.Xpp.MetadataSupport::GetDataEntityView(enumerator.Current);
var dataEntityFields = DataEntity.Fields;
var fieldsEnumerator = dataEntityFields.GetEnumerator();
while (fieldsEnumerator.MoveNext())
{
var FieldName = fieldsEnumerator.Current.ToString();
Info(strFmt("The First Field Name is %1 : Field Type is %2",FieldName, typeOf(fieldsEnumerator.Current)));
break;
}
break;
}
}
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,532 Super User 2024 Season 2
Martin Dráb 228,501 Most Valuable Professional
nmaenpaa 101,148