All EnumEnums have both a Enum name and a Enum display name. If you want to return both the Enum name and the Enum display name, you can use the following request header with the groupby service call:
KEY = Prefer VALUE =odata.include-annotations="*"
If you use the request header with the groupby service call, you can return an extra results column that shows the Enum name and the Enum display name, such as the following example:
GET
<ACCESS_URL>/api/v2/SDA/Tags?$apply=groupby((Criticality_Rating, Tag_Status),aggregate(Id with countdistinct as Count))
If you include the Prefer:odata.include-annotations="*" header, the following example would be:
GET
<Access_URL>/api/v2/SDA/$meta.data#Tags(Criticality_Rating,Criticality_Rating_EnumName,Tag_Status
The additional items are denoted by the suffix, EnumName. So the example shows the Criticality_Rating_EnumName and Tag_Status_EnumName that represent each of the items added as a dynamic column item.