Skip to main content
12-Amethyst
Jun 26, 2020 4:12 AM UTC
Question

How to retrieves parts of specific type View("Design or Manufacturing") through windchill REST API?

Hi,

is there REST API available to get all parts from windchill which will fetch only given specific view type?

Below is the url i was using but it gives me error, please provide if anyone knows the solution.

URL : "http://......../Windchill/servlet/odata/v1/ProdMgmt/Parts?$filter=view eq 'Design'"

Errror : 
"error": {
         "code": null,
         "message": "The property 'view', used in a query expression, is not defined in type 'PTC.ProdMgmt.Part'."
           }
}

 

Thanks in advance.

2 replies

1-Visitor
Feb 14, 2023 5:16 PM UTC

I wish there was a way, but based on the error we see now, it's not possible.

{

 "error": {

  "code": "PROPERTY_NAME_NOT_SEARCHABLE",

  "message": "View is not a searchable Attribute" 

}

 }

Translate
HelesicPetr
22-Sapphire II
Feb 15, 2023 7:41 AM UTC

Hello @JE_10192099 

 

the article CS375454 describes that it is possible in the WRS 2.4 

 

PetrH

Translate