Skip to main content
12-Amethyst
July 2, 2021
Solved

How to get latest revision of a WTPart using Windchill Rest API ?

  • July 2, 2021
  • 1 reply
  • 5490 views
Hi all, 

I am using Windchill 11.0 M030-CPS15

I want to get latest revision of a WTPart using Rest API.

 

I tried to use filter,

$filter : latestiteration eq true ;but not getting using this also.

 

eg. A.1 and B.1 and B.2

I only want to fetch the latest i.e B.2

 

Is there any way to get the latest version of a part through Rest API?

 

 

Best answer by imendiola

Hi mohitenw,

 

I think that the parameter was introduced in windchill REST Services 1.6.... (https://support.ptc.com/help/windchill_rest_services/r1.6/en/index.html#page/windchill_rest_services%2Fwccg_restapis_latest_version_search.html%23)

Perhaps you have a previous version installed?

 

Anyway, there is a workaround in https://www.ptc.com/en/support/article/CS334913

 

Regards

1 reply

13-Aquamarine
July 2, 2021

Hi,

try adding the following parameter:

ptc.search.latestversion=true

 

Regards

mohitenw12-AmethystAuthor
12-Amethyst
July 5, 2021

Thanks for the response,

"/Windchill/servlet/odata/v1/ProdMgmt/Parts?filter=Number%20eq%20'VWTM42SE'&ptc.search.latestversion=true"

 

I had tried with this solution also but no expected output.

Any workaround solution?

Thanks 

imendiola13-AquamarineAnswer
13-Aquamarine
July 5, 2021

Hi mohitenw,

 

I think that the parameter was introduced in windchill REST Services 1.6.... (https://support.ptc.com/help/windchill_rest_services/r1.6/en/index.html#page/windchill_rest_services%2Fwccg_restapis_latest_version_search.html%23)

Perhaps you have a previous version installed?

 

Anyway, there is a workaround in https://www.ptc.com/en/support/article/CS334913

 

Regards