Windchill REST Services Domain Capabilities > Examples for Basic REST Operations > Examples for the PTC Product Management Domain > Example: Retrieving Bill of Material with Plant Filters and Config Specs
Example: Retrieving Bill of Material with Plant Filters and Config Specs
You can filter the Bill of Materials by specifying the inline navigation criteria for Plant Filters and Config Specs. Use the following URI with the request body:
URI
POST /ProdMgmt/Parts('<Part OID>')/PTC.ProdMgmt.GetBOMWithInlineNavCriteria?$expand=Components($select=PartName;$levele=4)
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"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
}
],
"Filters": [
{
"@odata.type": "#PTC.NavCriteria.PlantFilter",
"IsIncludeNonVSEDObjs": false,
"Rules": [
{
"RuleOrder": 0,
"ObjectTypeIdentifier": "PTC.MfgProcMgmt.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": "Manufacturing",
"ExpressionOrder": 0,
"Comparison": {
"Value": "EQUAL",
"Display": "="
}
}
]
}
]
}
]
}
}