1 Reply Latest reply on Jul 16, 2019 10:31 PM by iiliev

    Get Folders in orchestrator configuration menu?

    MC2016 Novice

      Hello All,


      I'm looking to find a way to obtain the sub folder(s) under a folder in the configuration menu in orchestrator.


      Below is example and I'm trying to get all folders under sites to obtain folder titled "Site A"  and "Site B" to use in action at presentation layer of the workflow.


      I see ConfigurationElement in API explorer but that appears to be Element specific and don't see how to obtain the "folder"



           Site A




           Site B





      Any help in how to obtain the above information or where to continue my search is appreciated.

        • 1. Re: Get Folders in orchestrator configuration menu?
          iiliev Champion
          VMware EmployeesCommunity Warriors



          You can use the method Server.getConfigurationElementCategoryWithPath(String path) to get a configuration element category by its path (the path is the list of sub-folders starting from the root eg. "Sites" or "Sites/SiteA"), and then the property myCategory.subCategories to get the array containing the sub-categories of a given category myCategory.

          1 person found this helpful