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 Plant Data Objects with Inline Navigation Criteria
Retrieving Department Data Objects for a Collection of Plant Data Objects with Inline Navigation Criteria
This example shows you how to retrieve Department Data objects for a collection of Plant Data objects with inline Navigation Criteria. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetDepartmentDatasFromPlantWithInlineNavCriteria?$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": [],
"plants": [
"OR:com.ptc.windchill.enterprise.data.EnterpriseData:200886",
"OR:com.ptc.windchill.enterprise.data.EnterpriseData:200887"
],
"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
}
}
Example: Retrieving Department Data Objects for a Collection of Plant Data Objects with Inline Navigation Criteria for a Specified Department Data Type and Attribute
This example shows you how to retrieve Department Data objects for a collection of Plant Data objects with inline Navigation Criteria for the Department Data Type Logistics and the attribute locations. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetDepartmentDatasFromPlantWithInlineNavCriteria?$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": [
"003"
],
"categories": [],
"departmentDataTypes": [
"com.ptc.windchill.enterprise.data.PlantFunctionalData|org.rnd.Logistics"
],
"plants": [
"OR:com.ptc.windchill.enterprise.data.EnterpriseData:200886",
"OR:com.ptc.windchill.enterprise.data.EnterpriseData:200887"
],
"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 departmentDataTypes arrays.
Example: Retrieving Department Data Objects for a Collection of Plant Data Objects with Inline Navigation Criteria and View for Specified Department Data Type and Unique Attributes
This example shows you how to retrieve Department Data objects for a collection of Plant Data objects with inline Navigation Criteria and Manufacturing View for the Department Data Type Logistics and the locations and categories attributes. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetDepartmentDatasFromPlantWithInlineNavCriteria?$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": [
"003"
],
"categories": [
"Inventory"
],
"departmentDataTypes": [
"com.ptc.windchill.enterprise.data.PlantFunctionalData|org.rnd.Logistics"
],
"plants": [
"OR:com.ptc.windchill.enterprise.data.EnterpriseData:200886",
"OR:com.ptc.windchill.enterprise.data.EnterpriseData:200887"
],
"views": [
"Manufacturing"
],
"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.