If you retrieve a list then you have a few options to access values
You can do that with the marketplace module ModelReflection.
EDIT 1:
You need a java-action for that. (Read the Eclipse introduction)
add this code at BEGIN USER CODE
// BEGIN USER CODE
ArrayList<IMendixObject> list = new ArrayList<IMendixObject>();
Collection<? extends IMendixObjectMember<?>> members = Anyobject.getMembers(getContext()).values();
for( IMendixObjectMember<?> member : members ) {
String attributeName = member.getName();
if(!attributeName.startsWith("System.") && !attributeName.equals("changedDate") && !attributeName.equals("createdDate")) {
AttributeName aName = new AttributeName(getContext());
aName.setName(getContext(), attributeName);
list.add(aName.getMendixObject());
}
}
return list;
// END USER CODE
Eclipse will show a readline below missing imports, click on it and always choose ‘Import.xyz’
In your microflow take the head of the list and pass that object to the Java-action. The result list will contain the names.
Otherwise take a look at CopyAttributes from communitycommons.
You can first take head element of list that will give you first object of list and pass that object to show page activity.(page should use data view to show object detail).
Sorry for my complex answer.
“ I just need to capture the Attribute Name in a microflow variable or print it in log message. “
https://docs.mendix.com/refguide/loop
https://docs.mendix.com/refguide/log-message