Skip to main content
16-Pearl
October 11, 2023
Question

Product Management - getPartStructure API

  • October 11, 2023
  • 1 reply
  • 3282 views

In Windchill Rest Services Product Management>getPartStructure

I used $expand = Components($expand=Part,PartUse;$levels=max)  API , It executed for 4 mins. To reduce execution time, i want to provide 3 field names in $select query. Kindly refer the attached JSON document to form the query to fetch the field 'PartNumber, ComXXXEngineeringSequences, ItemTypeComXXXIndustriesItemType'.

 

I able to fetch two fields using query 
$expand = Components($expand=PartUse($select=ComXXXEngineeringSequences))

 

But when I tried to fetch ItemTypeComXXXIndustriesItemType using query $expand=  Components($expand=Part($select=ItemTypeComPolarisindPolarisIndustriesItemType);$levels=max)
It throwed error  [ - The property 'ItemTypeComXXXItemType', used in a query expression, is not defined in type 'Part'.]

 

Kindly check the attached file and let me know how to fetch 'PartNumber, ComXXXEngineeringSequences, ItemTypeComXXXIndustriesItemType' together.

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
October 11, 2023

Hi @AP_10343008 

If you use wt.part.WTPart as a type does it work?

 

try to use a full path definition type "wt.part.WTPart|ItemTypeComPolarisindPolarisIndustriesItemType"

 

PetrH

16-Pearl
October 11, 2023

I tried the query Components($expand=Part($select=wt.part.WTPart|ItemTypeComPolarisindPolarisIndustriesItemType)) 
It throwed error  [ - The part 'wt.part.WTPart' is not defined.]

HelesicPetr
22-Sapphire II
22-Sapphire II
October 11, 2023

@AP_10343008 

You need to find how the type should be exactly defined 😄 

PetrH