Find dimension Set/Subset using X++

Hi All,

Is any method available to find the dimension set or dimension subset based on the dimensions?

Dimension set will have reference to dimension priority id. Dimension priority will store dimensions (elements of SysDimension ENUM) in an array.

For ex (Division - Department) dimensions, The priority will be stored like

DimPriority.Priority[1] = 1 (Division is first dimension in the array of priority)

DimPriority.Priority[3] = 2 (Department is third dimension in the array of priority, “2” signifies the department is second dimension)

Any ideas ?