Skip to main content
1-Visitor
October 11, 2019
Solved

Multi-valued Attributes through odata API

  • October 11, 2019
  • 2 replies
  • 3807 views

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

Best answer by olivierfresse

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=search

 

2 replies

16-Pearl
October 11, 2019

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.

1-Visitor
November 1, 2019

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. 

15-Moonstone
March 4, 2020

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=search

 

Community Manager
March 13, 2020

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