Skip to main content
14-Alexandrite
September 12, 2025
Question

How to get "Global Enumeration Used" in the "Constraints" tab of a Classification Attribute

  • September 12, 2025
  • 2 replies
  • 340 views

I have a classification attribute named Colour with internal name COLOR,

in the Constraints tab, I have assigned global enumeration which is having internal name Colour(COLOR_ABC).

 

Is there any api available such that when I give an input of Classification Attribute internal name (COLOR), my output should fetch the global enumeration used COLOR_ABC.

 

Manoj_Dokku4_1-1757668579589.png

 

@HelesicPetr 

 

2 replies

17-Peridot
September 14, 2025

If I do understand you correctly, you want the display value of the selected enumeration. This is found e.g. in the support case:
https://www.ptc.com/en/support/article/CS204076

Important is, that you always need to load the classification link attribute together with the needed attribute.

14-Alexandrite
September 15, 2025

@BjoernRueegg , thanks for the reply.

This will work If you have a persistable object, but in my scenario, I know only the Internal Name of the classification attribute used, need to get the Internal Name of External Global enumeration used in the Constraint.

13-Aquamarine
September 15, 2025

You need to check for the constraints of the attributes then filter on the constraint of type global enumeration