cancel
Showing results for 
Search instead for 
Did you mean: 

Attributes and the New Java API

Former Member
0 Kudos

I have a question about attributes and the new Java API.

In the old API, linked attributes were returned in order of priority. In the new API, RetrieveLimitedAttributesCommand returns the AttributeProperties sorted by name. Is there any way to get the attributes sorted by priority?

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi Bruce,

maybe you can try with combine getAttributes with getAttributePriority

http://help.sap.com/javadocs/MDM/current/com/sap/mdm/data/commands/RetrieveLimitedAttributesCommand....

and sort it on your own ?

Regards,

michal

Former Member
0 Kudos

Michal,

Thank you for answering.

I do use getAttributes to get the list of AttributePriorities. The getAttributePriority method of RetrieveLimitedAttributesCommand will return whatever filter value was given in setAttributePriority. So that does not help.

What I was expecting (maybe they can add this in SP06) was for the Record.getAttributeValue() to return something (it returns a MdmValue now) that includes the actual priority of the attribute.