Article - CS334913

How to use custom query options "ptc.search.latestversion" to retrieve latest versions of WTPart in ThingWorx Platform?

Modified: 14-Aug-2023   


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?
This is a printer-friendly version of Article 334913 and may be out of date. For the latest version click CS334913