Windchill REST Services > Windchill REST Services Domain Capabilities > Examples for Basic REST Operations > Examples for the PTC BOM Transformation Domain > Retrieving Extended Data for Co-produce Objects
  
Retrieving Extended Data for Co-produce Objects
Example: Retrieving Extended Data for All Co-produce Objects
This example shows you how to retrieve extended data (plant data and enterprise data) for all Co-produce objects. Use the following GET URI.
URI
GET /Windchill/servlet/odata/BomTransformation/Coproduces?$expand=ExtendedData
Example: Retrieving Extended Data for Multiple Co-produce Objects
This example shows you how to retrieve extended data (plant data and enterprise data) for two Co-produce objects. Use the following POST URI.
URI
POST /Windchill/servlet/odata/BomTransformation/GetCoproduceData?$expand=ExtendedData
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Coproduces": [
{
"ID": "OR:wt.part.WTPart:269280"
},
{
"ID": "OR:wt.part.WTPart:269356"
}
]
}
Example: Retrieving Extended Data for Multiple Co-produce Objects for Specific Navigation Criteria
This example shows you how to retrieve extended data (plant data and enterprise data) for two Co-produce objects for specific navigation criteria. Use the following POST URI.
URI
POST /Windchill/servlet/odata/BomTransformation/GetCoproduceData?$expand=ExtendedData
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Coproduces": [
{
"ID": "OR:wt.part.WTPart:203891"
},
{
"ID": "OR:wt.part.WTPart:204298"
}
],
"navigationCriteriaId": "OR:wt.filter.NavigationCriteria:203920"
}
Example: Retrieving Extended Data for Multiple Co-produce Objects with Inline Navigation Criteria
This example shows you how to retrieve extended data (plant data and enterprise data) for two Co-produce objects with inline navigation criteria. Use the following POST URI.
URI
POST /Windchill/servlet/odata/BomTransformation/GetCoproduceDataWithInlineNavCriteria?$expand=ExtendedData
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Coproduces": [
{
"ID": "OR:wt.part.WTPart:273138"
},
{
"ID": "OR:wt.part.WTPart:205842"
}
],
"NavigationCriteria": {
"HideUnresolvedDependents": true,
"Centricity": false,
"Filters": [
{
"@odata.type": "#PTC.NavCriteria.PlantFilter",
"IsIncludeNonVSEDObjs": false,
"Rules": [
{
"LinkTypeIdentifier": "PTC.ProdMgmt.PartUse",
"Expressions": [
{
"Attribute": "WCTYPE|com.ptc.windchill.enterprise.data.EnterpriseData|com.ptc.windchill.enterprise.data.enterpriseData.PlantSpecificEnterpriseData~MBA|view^WCTYPE|wt.vc.views.View",
"Comparison": {
"Value": "EQUAL",
"Display": "="
},
"ExpressionOrder": 0,
"Value": "Design"
}
],
"RuleOrder": 0,
"ObjectTypeIdentifier": "PTC.MfgProcMgmt.PlantSpecificEnterpriseData"
}
]
}
],
"ApplicationName": null,
"UseDefaultForUnresolved": false,
"SharedToAll": false,
"ApplicableType": "PTC.ProdMgmt.Part",
"ApplyToTopLevelObject": false,
"ConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.PlantStandardConfigSpec",
"LifeCycleState": null,
"WorkingIncluded": false,
"View": "Design"
}
]
}
}
Example: Retrieving Extended Data for Multiple Finished Parts with Co-produce Objects
This example shows you how to retrieve extended data (plant data and enterprise data) for two finished parts with Co-produce objects. Use the following POST URI.
URI
POST /Windchill/servlet/odata/BomTransformation/GetCoproduceForParts?$expand=Coproduces($expand=ExtendedData)
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 Extended Data for Multiple Finished Parts with Co-produce Objects for Specific Navigation Criteria
This example shows you how to retrieve extended data (plant data and enterprise data) for two finished parts with Co-produce objects for a specific navigation criteria. Use the following POST URI.
URI
POST /Windchill/servlet/odata/BomTransformation/GetCoproduceForParts?$expand=Coproduces($expand=ExtendedData)
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"
}
Example: Retrieving Extended Data for Multiple Finished Parts with Co-produce Objects with Inline Navigation Criteria
This example shows you how to retrieve extended data (plant data and enterprise data) for two finished parts with Co-produce objects with inline navigation criteria. Use the following POST URI.
URI
POST /Windchill/servlet/odata/BomTransformation/GetCoproduceForPartsWithInlineNavCriteria?$expand=Coproduces($expand=ExtendedData)
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Parts": [
{
"ID": "OR:wt.part.WTPart:273045"
},
{
"ID": "OR:wt.part.WTPart:205482"
}
],
"NavigationCriteria": {
"ApplicableType": "PTC.ProdMgmt.Part",
"ApplicationName": null,
"ApplyToTopLevelObject": true,
"Centricity": false,
"ConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.WTPartStandardConfigSpec",
"WorkingIncluded": true,
"View": "Design",
"LifeCycleState": null,
"Variation1": null,
"Variation2": null
},
{
"@odata.type": "#PTC.NavCriteria.WTPartStandardConfigSpec",
"WorkingIncluded": true,
"View": "Manufacturing",
"LifeCycleState": null,
"Variation1": null,
"Variation2": null
}
],
"CreatedOn": "2022-04-29T15:25:14+02:00",
"Filters": [
{
"@odata.type": "#PTC.NavCriteria.PlantFilter",
"IsIncludeNonVSEDObjs": false,
"Rules": [
{
"RuleOrder": 0,
"ObjectTypeIdentifier": "PTC.BomTransformation.PlantSpecificEnterpriseData",
"LinkTypeIdentifier": "PTC.ProdMgmt.PartUse",
"Expressions": [
{
"Attribute": "WCTYPE|com.ptc.windchill.enterprise.data.EnterpriseData|com.ptc.windchill.enterprise.data.enterpriseData.PlantSpecificEnterpriseData~MBA|view^WCTYPE|wt.vc.views.View",
"Value": "Design",
"ExpressionOrder": 0,
"Comparison": {
"Value": "EQUAL",
"Display": "="
}
}
]
}
]
}
],
"HideUnresolvedDependents": false,
"ID": "OR:wt.filter.NavigationCriteria:274647",
"LastModified": "2022-04-29T15:25:14+02:00",
"Name": "1525",
"SharedToAll": false,
"UseDefaultForUnresolved": false
}
}