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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Get WTPart from MPMProcessPlan

asnoeckx
7-Bedrock

Get WTPart from MPMProcessPlan

How can I get the associated WTPart from an MPMProcessPlan programmatically?

ACCEPTED SOLUTION

Accepted Solutions
HelesicPetr
22-Sapphire I
(To:asnoeckx)

Hi @asnoeckx 

 

The service is: 

QueryResult queryresult = MPMProcessPlanHelper.service.getWTParts(mpmProcesPlan);

PetrH 

View solution in original post

3 REPLIES 3
HelesicPetr
22-Sapphire I
(To:asnoeckx)

Hi @asnoeckx 

 

The service is: 

QueryResult queryresult = MPMProcessPlanHelper.service.getWTParts(mpmProcesPlan);

PetrH 

Thanks! This indeed gets me a long way, but if I am not mistaken, the query returns all versions of all related parts. Any chance I can find out the specific WTPart version linked to the plan?

 

HelesicPetr
22-Sapphire I
(To:asnoeckx)

Hi @asnoeckx 

 

The result contains all linked versions. So Your process plan is linked to iterations which are returned.

It does not mean that all versions of WTPart are returned. Only the linked one.

 

If you need specific version you need to filter it.

For example the latest revision/iteration.

 

PetrH 

 

 

Announcements

Top Tags