Windchill REST Services > Windchill REST Services Domain Capabilities > Examples for Basic REST Operations > Examples for the PTC BOM Transformation Domain > Retrieving Department Data Objects for a Collection of Parts Objects with Inline Navigation Criteria
  
Retrieving Department Data Objects for a Collection of Parts Objects with Inline Navigation Criteria
Example: Retrieving Department Data Objects for a Collection of Parts Objects with Inline Navigation Criteria using a Specified Filter
This example shows you how to retrieve Department Data objects for a collection of Parts objects with inline Navigation Criteria using PlantFilter Filter. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetDepartmentDatasForPartsWithInlineNavCriteria?$expand=DepartmentData
* 
You must apply $expand on DepartmentData to retrieve information otherwise, an empty list is returned.
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"supplyChains": [],
"locations": [],
"categories": [],
"departmentDataTypes": [],
"parts": [
"OR:wt.part.WTPart:183875",
"OR:wt.part.WTPart:183887",
"OR:wt.part.WTPart:183910"
],
"views": [],
"NavigationCriteria": {
"ApplicableType": "PTC.ProdMgmt.Part",
"ApplicationName": null,
"ApplyToTopLevelObject": false,
"Centricity": false,
"ConfigSpecs": [
{}
],
"Filters": [
{
"@odata.type": "#PTC.NavCriteria.PlantFilter",
"IsIncludeNonVSEDObjs": false,
"Rules": [
{
"RuleOrder": 0,
"ObjectTypeIdentifier": "PTC.MfgProcMgmt.DepartmentData",
"LinkTypeIdentifier": "PTC.ProdMgmt.PartUse",
"Expressions": [
{
"Attribute": "WCTYPE|com.ptc.windchill.enterprise.data.PlantFunctionalData~MBA|versionInfo.identifier.versionId",
"Value": "C*",
"ExpressionOrder": 0,
"Comparison": {
"Value": "EQUAL",
"Display": "="
}
}
]
}
]
}
],
"HideUnresolvedDependents": false,
"SharedToAll": false,
"UseDefaultForUnresolved": false
}
}
Example: Retrieving Department Data Objects for a Collection of Parts Objects with Inline Navigation Criteria and View and Filtering by Unique Attributes
This example shows you how to retrieve Department Data objects for a collection of Parts objects with inline Navigation Criteria and Design View and filtering by the locations. and categories attributes. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetDepartmentDatasForPartsWithInlineNavCriteria?$expand=DepartmentData
* 
You must apply $expand on DepartmentData to retrieve information otherwise, an empty list is returned.
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"supplyChains": [],
"locations": [
"001"
],
"categories": [
"Inventory"
],
"departmentDataTypes": [],
"parts": [
"OR:wt.part.WTPart:183875",
"OR:wt.part.WTPart:183887",
"OR:wt.part.WTPart:183910"
],
"views": [
"Design"
],
"NavigationCriteria": {
"ApplicableType": "PTC.ProdMgmt.Part",
"ApplicationName": null,
"ApplyToTopLevelObject": false,
"Centricity": false,
"ConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.PlantStandardConfigSpec",
"WorkingIncluded": false,
"View": "MMG",
"LifeCycleState": null
}
],
"Filters": [
{}
],
"HideUnresolvedDependents": false,
"SharedToAll": false,
"UseDefaultForUnresolved": false
}
}
* 
You can specify multiple values in the supplyChains, locations, categories, and views arrays.
Example: Retrieving Department Data Objects for a Collection of Parts Objects with Inline Navigation Criteria and View for a Specified Department Data Type and Unique Attribute
This example shows you how to retrieve Department Data objects for a collection of Parts objects with inline Navigation Criteria and Design View for the Department Data Type Logistics and the locations attribute. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetDepartmentDatasForPartsWithInlineNavCriteria?$expand=DepartmentData
* 
You must apply $expand on DepartmentData to retrieve information otherwise, an empty list is returned.
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"supplyChains": [],
"locations": [
"001"
],
"categories": [],
"departmentDataTypes": [
"com.ptc.windchill.enterprise.data.PlantFunctionalData|org.rnd.Logistics"
],
"parts": [
"OR:wt.part.WTPart:183875",
"OR:wt.part.WTPart:183887",
"OR:wt.part.WTPart:183910"
],
"views": [
"Design"
],
"NavigationCriteria": {
"ApplicableType": "PTC.ProdMgmt.Part",
"ApplicationName": null,
"ApplyToTopLevelObject": false,
"Centricity": false,
"ConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.PlantStandardConfigSpec",
"WorkingIncluded": false,
"View": "MMG",
"LifeCycleState": null
}
],
"Filters": [
{}
],
"HideUnresolvedDependents": false,
"SharedToAll": false,
"UseDefaultForUnresolved": false
}
}
* 
You can specify multiple values in the supplyChains, locations, categories, views, and departmentDataTypes arrays.