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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Multi-valued Attributes through odata API

ehalvordsson
12-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

ACCEPTED SOLUTION

Accepted Solutions

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

 

View solution in original post

4 REPLIES 4

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.

ehalvordsson
12-Amethyst
(To:barko)

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. 

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

 

slangley
23-Emerald II
(To:ehalvordsson)

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


Top Tags