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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

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

mohitenw
12-Amethyst

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?

 

 

ACCEPTED SOLUTION

Accepted Solutions
imendiola
13-Aquamarine
(To:mohitenw)

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

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

View solution in original post

5 REPLIES 5
imendiola
13-Aquamarine
(To:mohitenw)

Hi,

try adding the following parameter:

ptc.search.latestversion=true

 

Regards

http://www.prambanan-it.comIker Mendiola - Prambanan IT Services
mohitenw
12-Amethyst
(To:imendiola)

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 

imendiola
13-Aquamarine
(To:mohitenw)

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

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


@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%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


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

mohitenw
12-Amethyst
(To:imendiola)

Thanks for the solution.

Announcements

Top Tags