Our organization is structured in various ways and depending on the OrganizationUnitType I would like to display a certain level.
I can traverse up the HROrganizationUnit tree by using multiple ParentUnit's (i.e. (HROrganizationUnit.ParentUnit.ParentUnit) However, the level I need to display varies within the organization/scenario. Is there way I can select a certain level of the chain by returning the Parentunit based upon the OrganizationUnitType.Level = XYZ ?
In the example below I am looking to display either 9999 or 8888 (both of which have a OrganizationUnitType.Level of XYZ)
30000--11000--00001--9999--Administration--Executive--123
00001--8888--Unit--Administration--Executive--123
Thank you.