Skip to main content
12-Amethyst
June 26, 2020
Question

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

  • June 26, 2020
  • 1 reply
  • 1997 views

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.

1 reply

1-Visitor
February 14, 2023

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" 

}

 }

HelesicPetr
22-Sapphire II
22-Sapphire II
February 15, 2023

Hello @JE_10192099 

 

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

 

PetrH