Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Hello,
We are using REST API for exporting WTParts
We were able to export only items that are Latest Released.
Is there any way to get also other iterations or other states (Working/Obsolete....)
Thank you
Ilan.M
I would like to clarify the question.
We are using REST API for exporting WTParts.
We were able to export only items that are Latest Released (Latest Iteration) - See yellow mark in the picture
Is there any way to get all the iterations per Wtpart ?
Anyone?
Ilan.M
If there isn’t an already existing REST API, perhaps an alternative way could be to create a query in query builder, which can be invoked from the REST /invokeIETask endpoint.
Do you know any guide about How to create/use IE Tasks for Windchill? I'm trying to get information from the REST API, and I read that the REST API of Windchill cannot be customizable 😞
Thanks a lot!
Hi Ilan_Mor,
using WRS - the Windchill Rest Services (ODATA) - we can filter for all objects on a specific lifecycle state.
The samples below are filtering for all parts for a specific lifecycle state and the other samples combine it with additional criteria.
Be aware that the latest Revision will be provided when the Lifecycle state appear multiple time for the object.
GET /odata/PartMgmt/Parts?$filter=State/Value eq 'RELEASED'
GET /odata/PartMgmt/Parts?$filter=startswith(Name,'WRS_') and State/Value eq 'CANCELLED'
GET /odata/PartMgmt/Parts?$filter=Number eq '0000047402' and State/Value eq 'INWORK'
What WRS can do is documented here, there are also samples.
https://support.ptc.com/help/windchill_rest_services/r2.3/en/
Thanks
Tilo