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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Searching for all iterations of all versions

FS_10272716
10-Marble

Searching for all iterations of all versions

Hello,

 

I am using REST to query WTParts. I currently filter for name, number and a specific type id.

I also need a filter to search for all iterations of all versions instead of only the latest one.

I tried providing a navigationCriteria but I actually do not know what to put in here.

 

Does anyone know how to filter for latestVersion?

 

Best regards

3 REPLIES 3

You can search for all "Revisions and Iterations" of a part by using the naviation called "Versions"
this example should show all avaialble information
https://<HOSTNAME>/Windchill/servlet/odata/ProdMgmt/Parts?%24filter=Number eq "<yourNo>"&ptc.search.latestiteration=false&$expand=Versions

Hello @ThorstenMueller ,

 

thank you for your reply. Unfortunately, we do not use the ODATA endpoints, our url looks like this https://<HOSTNAME>/Windchill/servlet/rest/search/objects......

 

I am using the Search (/search/objects) to filter for objects. With this parameter you can apparently filter for versions but I have not found out yet how to do this. Do you also have an idea how to do it using this endpoint?

FS_10272716_0-1664369532497.png

 

There is also a $filter but I am not sure if this can help either.

FS_10272716_1-1664369728381.png

 

 

Best regards

Sadly I'm not sure if the same can be achieved using the Swagger interface. To my knowledge it provides the lastest element if you don't specify the filter parameter for a specific iteration. (e.g. iterationIdentifier eq '5')
You could try and provide a navigationCriteriaID of a "Saved Filter" in Windchill that isn't using the "latest" type.
e.g. "Effectifity" but that would only work if all iterations would have the same effectivity

my recommendation would be to use the new ODATA WRS interface.

Top Tags