Retrieving Co-produce Information for a Collection of Finished Parts
You can retrieve the Co-produce information for a single Finished Part or a collection of Finished Parts or their subtypes by specifying the Finished Part OIDs in the request body. You can retrieve information of specified Co-produces by expanding on Primary Co-produce Link, Secondary Co-produce Links, Co-produce Usage Links, Co-produce Usage Parts, Primary Part, Secondary Members, or Co-produce Usages.
Example: Retrieving Co-produce Information for Multiple Finished Parts
This example shows you how to retrieve the Co-produce information for two Finished Parts specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetCoproduceForParts
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Parts": [
{
"ID": "OR:wt.part.WTPart:203891"
},
{
"ID": "OR:wt.part.WTPart:204298"
}
]
}
Example: Retrieving Co-produce Information for Multiple Finished Parts for a Specific Navigation Criteria
This example shows you how to retrieve the Co-produce information for two Finished Parts with Navigation Criteria specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetCoproduceForParts
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Parts": [
{
"ID": "OR:wt.part.WTPart:203891"
},
{
"ID": "OR:wt.part.WTPart:204298"
}
],
"navigationCriteriaId": "OR:wt.filter.NavigationCriteria:203920"
}
URI with Expand
POST /Windchill/servlet/odata/BomTransformation/GetCoproduceForParts?$expand=Coproduces($expand=PrimaryCoproduceLink($expand=Primary),SecondaryCoproduceLinks($expand=Secondary),CoProduceUsageLinks($expand=CoProduceUses,CoProduceUsedBy),PrimaryPart($select=Identity),SecondaryMembers($select=Identity),CoProduceUsages($select=Identity))
Example: Retrieving Co-produce Information for Multiple Finished Parts with Inline Navigation Criteria
This example shows you how to retrieve the Co-produce information for two Finished Parts with inline Navigation Criteria. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetCoproduceForPartsWithInlineNavCriteria
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Parts": [
{
"ID": "OR:wt.part.WTPart:203473"
},
{
"ID": "OR:wt.part.WTPart:205482"
}
],
"NavigationCriteria": {
"ApplicableType": "PTC.ProdMgmt.Part",
"ApplicationName": null,
"ApplyToTopLevelObject": false,
"Centricity": false,
"ConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.WTPartEffectivityDateConfigSpec",
"EffectiveDate": "2022-03-09T23:00:00Z",
"EffectiveContext": "wt.part.WTPartMaster:203145",
"View": "Design",
"Variation1": null,
"Variation2": null
}
],
"Filters": [],
"HideUnresolvedDependents": false,
"SharedToAll": true,
"UseDefaultForUnresolved": false
}
}
URI with Expand
POST /Windchill/servlet/odata/BomTransformation/GetCoproduceForPartsWithInlineNavCriteria?$expand=Coproduces($expand=PrimaryCoproduceLink($expand=Primary),SecondaryCoproduceLinks($expand=Secondary),CoProduceUsageLinks($expand=CoProduceUses,CoProduceUsedBy),PrimaryPart($select=Identity),SecondaryMembers($select=Identity),CoProduceUsages($select=Identity))