If I am understanding correctly, what you are trying to do is retrieve a list of referenced objects and count them.
This can be accomplished with two activities in your microflow. First, use a retrieve activity to retrieve the list of associated objects. Then, use an aggregate list activity to count the list of retrieved objects. This will result in an integer which can be stored in an attribute on your original entity to keep track of the counted number.
A handy Mendix feature to know about, if the aggregate list activity is the only activity in you microflow that makes use of the retrieved list of objects, Studio Pro will detect this and merge them into a single query to the database in order to improve performance.
You can find more details in the documentation here: https://docs.mendix.com/refguide/aggregate-list/
Hope this helps
of yourse it works ;-)
i only had to connect the int..
thanks for your answer.
I build the MF and after all i get my Count as “intCount”
But how to save this, as the Domainmodel only allows writing by the MF?