How to use custom query options "ptc.search.latestversion" to retrieve latest versions of WTPart in ThingWorx Platform?
Applies To
- ThingWorx Platform 8.3 to 9.3
Description
- Windchill WRS provides a direct function to retrieve latest WTPart revision and version only, that was described in Windchill WRS help link: Retrieving the Latest Version of an Entity
- Customer uses the same option ptc.search.latestversion to customized an endpoint, but fails to be recognized by ThingWorx
- When saving the mapped API as service, it always report invalid name in ThingWorx composer UI, application log also reports error:
-
[L: ERROR] [O: c.t.w.Things] [I: ] [U: <User>] [S: ] [P: ] [T: https-jsse-nio-443-exec-30] Import Failed: Invalid Name: [ptc.search.latestversion] - Prohibited Character in Name
-
- Other related endpoints (such as /v4/ProdMgmt/Parts) would result in all latest versions (such as A.3/B.4/C.5) without latest revision only
- How to only get latest revision of WTPart from Windchill?