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

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

mohitenw
11-Garnet

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

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?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

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...

Perhaps you have a previous version installed?

 

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

 

Regards

http://www.prambanan-it.comIker Mendiola - Prambanan IT Services

View solution in original post

5 REPLIES 5

Hi,

try adding the following parameter:

ptc.search.latestversion=true

 

Regards

http://www.prambanan-it.comIker Mendiola - Prambanan IT Services

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 

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...

Perhaps you have a previous version installed?

 

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

 

Regards

http://www.prambanan-it.comIker Mendiola - Prambanan IT Services

View solution in original post


@imendiola wrote:

Hi mohitenwprepaidcardstatus

 

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...

Perhaps you have a previous version installed?

 

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

 

Regards


Thanks for sharing useful information with us.. It really helpful to me..I always prefer to read the quality content and this thing I found in you post. thanks for sharing with us..

Thanks for the solution.

Announcements