Self-References - Obtain all children from top parent level
I am trying to get all the children back from the highest level. So I also want to get the children's children back. On https://docs.mendix.com/refguide/query-over#2-1-retrieving-the-subfolder-s-children-from-a-folder-parent is only explained how to get the direct children back from a parent object. Example: So when I reference from folder, I want to get everything back up to subfolder220.127.116.11 Can anybody help me with that?
I think you need to create a loop in a microflow to achieve this:
Retrieve the parent, if found, retrieve the parents parent, etc until you reach the top.
Then retrieve the children, and for each child, retrieve its children.