Skip to main content
4-Participant
February 6, 2023
Solved

Get Product Enditem via API

  • February 6, 2023
  • 1 reply
  • 1846 views

Hello together,

 

I am struggling a little with the incomplete Windchill API docu. I search for an API to get the EndItems for a specific product container.

 

Anyone any idea how to do this? Thanks in advance 

 

 

 

 

 

 

Best answer by bhushan.d

Hi @SebastianR1984 ,

This is Bhushan from PTC Technical Support.

 

There is an API GET /Parts in PTC Product Management Domain which can be used with filter EndItem and Context Name to get End Items of specific product.

Example:

EndItem eq true and Context/Name eq 'GOLF_CART'

1 reply

avillanueva
23-Emerald I
23-Emerald I
February 6, 2023

From the PDMLinkProduct object call getProduct(). This will return a WTPastMaster of the primary End Item if it was set. If you are looking for all of them, I would do a Query in that context for all Parts that are flagged as end items.

4-Participant
February 6, 2023

Thanks for the answer. But i am looking for a REST API in the Windchill REST Services.

bhushan.d17-PeridotAnswer
17-Peridot
February 16, 2023

Hi @SebastianR1984 ,

This is Bhushan from PTC Technical Support.

 

There is an API GET /Parts in PTC Product Management Domain which can be used with filter EndItem and Context Name to get End Items of specific product.

Example:

EndItem eq true and Context/Name eq 'GOLF_CART'