Getting one value from collection attribute
Hello everyone!
I get information from the server using the OData REST API.
I have a global attribute, which is a collection:

I want the server to return only one value from the collection when requested. In the request, I want to specify a value that will determine the desired collection value.
I understand that such logic can not be written in the request. Therefore, I tried to implement this in the JavaScript domain file.
I thought that it should be a function that first receives the values of the collection attributes from Windchill, matches them, and then uses the value passed to the function as a key and returns the desired value.
I saw that in JavaScript you can use classes from Java:
var EntityAttribute = Java.type('com.ptc.odata.core.entity.property.EntityAttribute');
But I do not know how to use the code to get the values of global attributes.
I did not find documentation for odataWeb.jar (com.ptc.odata...) library.
Tell me, please, how can I do this?
Thank you in advance!
Best Regards!

