Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
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?
Solved! Go to Solution.
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
Iker Mendiola - Prambanan IT Services |
Hi,
try adding the following parameter:
ptc.search.latestversion=true
Regards
Iker 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%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
Iker Mendiola - Prambanan IT Services |
@imendiola wrote:
Hi mohitenw, prepaidcardstatus
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..
Thanks for the solution.