I am facing an issue regarding the new hierarchies.
I want to write a process, that adds a new element to a specific hierarchy, but before that I want to check, if that new element already exists in the hierarchy, or in any of the other hierarchies.
In the old times the DIMIX done its job perfectly, but now it is not enough.
Is there a DIMIXForAllhierarchy function? Becasue there should be. (I couldn't find it the documentation, just praying

Is there a way to find out the number of the hierarchies and their names in a process? So I could create a loop and check in all with HierarchyElementExists?
In rules I found the HierarchyCount and HierarchyN, that would be perfect, but unfortunately they can be used in rules only. And not works in processes. (Extra beer for anyone who knows why)
Any tips beside to hardcode HierarchyElementExists for all known hierarchies?
Thanks for your help in advance.