cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Multi-valued Attributes through odata API

SOLVED
Amethyst

Multi-valued Attributes through odata API

We are trying to read multi-valued attributes in Windchill through the odata API. However, Windchill only seems to return one of the values and does not compile it into a list. Any ideas if this can be resolved? Many thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Multi-valued Attributes through odata API

Just in case someone meets the same issue :  It's a bug, and it should be fixed in WRS 1.7 

 

https://www.ptc.com/en/support/article/CS309494?&language=en&posno=1&q=odata%20multi%20value&source=...

 

View solution in original post

4 REPLIES 4

Re: Multi-valued Attributes through odata API

Try this to narrow down the issue. Find the query that was submitted to Windchill in one of the logs, such as the TWX application log or httpserver access log. Copy the request to a text editor, and remove the parameters that provided authentication such as sslClientAuth or wt.effectiveUserId. Paste the resulting URL into the address bar of a browser. If the edit removed the correct items, you should get a basic authentication pop up asking for username and password. Login normally. The browser should display the response as an XML or JSON formatted document, and list all the data returned from Windchill. You can use this to see whether it is Windchill truncating the list, or if a full list is returned to Thingworx and TWX only displays the first item from the list.

Re: Multi-valued Attributes through odata API

Many thanks for the response. I am reading the JSON directly from the API already and it only contains the first value, not the complete list. After some discussions we may end up not using this attribute so it is not critical for the project at the moment. 

Re: Multi-valued Attributes through odata API

Just in case someone meets the same issue :  It's a bug, and it should be fixed in WRS 1.7 

 

https://www.ptc.com/en/support/article/CS309494?&language=en&posno=1&q=odata%20multi%20value&source=...

 

View solution in original post

Re: Multi-valued Attributes through odata API

Hi @ehalvordsson.

 

If one of the previous responses answered your question, please mark the appropriate one as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon

Announcements