Retrieving Department Data Objects for a Collection of Plant Data Objects
This example shows you how to retrieve Department Data objects for a collection of Plant Data objects. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetDepartmentDatasFromPlant?$expand=DepartmentData
|
If NavigationCriteriaId is passed as a parameter, the Navigation Criteria with the given ID is used, else System Default Navigation Criteria is applied. Refer to the domain EDM for details.
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
{
"navigationCriteriaId": "OR:wt.filter.NavigationCriteria:200537",
"plants": [
"OR:com.ptc.windchill.enterprise.data.EnterpriseData:200886",
"OR:com.ptc.windchill.enterprise.data.EnterpriseData:200887"
]
}