Article - CS334913

How to use custom query options "ptc.search.latestversion" of Windchill Rest Services (WRS) to retrieve latest versions of WTPart/WTDocument in ThingWorx Platform?

Modified: 13-May-2025   


Applies To

  • ThingWorx Platform 8.3 to 9.7
  • Windchill Navigate (formerly ThingWorx Navigate) 9.0 to 9.7
  • Windchill PDMLink 12.0 to 13.1

Description

  • Windchill WRS provides a direct function to retrieve latest WTPart/WTDocument 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/WTDocument from Windchill and render in Thingworx
  • How to get the latest revision of WTDocument with filter using Container and Folder as inputs by WRS
This is a printer-friendly version of Article 334913 and may be out of date. For the latest version click CS334913