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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

How to get Process plans based on Navigation Criteria via OData web services?

jclément
2-Explorer

How to get Process plans based on Navigation Criteria via OData web services?

Version: Windchill 12.0

 

Use Case: We need to get a process plan based on the process plan number and filtered by a navigation criteria. The Swagger API allows to do that by using the searchObjects Web service. However, there is, to my knowledge, no web service allowing to do that in OData. Is there a way to do this using OData web services?


Description:

We have some process plans (com.ptc.windchill.mpml.processplan.MPMProcessPlan) that are linked to a WTPart (via a com.ptc.windchill.mpml.processplan.MPMPartToProcessPlanLinks). The main goal is to get all process plans linked to a specific part, filtered by a navigation Criteria. The way we do it right now is that we use the searchObjects Swagger web service to get all the MPMPartToProcessPlanLinks linked to the part, and then for each number returned by this service, we use the searchObjects Swagger web service again with a navigation criteria as input and finally we check if the oid of the ProcessPlan returned by the second web service is incuded in the list of processPlan oids returned by the first web service. 

In OData we already have a web service that allows to get all the ProcessPlans linked to a specific part (odata/v6/MfgProcMgmt/Materials('MaterialID')/PartToProcessPlanLinks). However this service doesn't have an input for navigation criteria. And there doesn't seem to be a service that allows, given a ProcessPlan number, to input a navigation criteria and filter the ProcessPlan based on this navigation criteria. For information, the navigation criteria contains a ConfigSpec for a ManagedBaseline (wt.vc.baseline.ManagedBaseline)

1 REPLY 1
Fadel
22-Sapphire II
(To:jclément)

can you take a look atGetBOP  https://www.ptc.com/en/support/article/CS312515 

Fede
Announcements

Top Tags