Retrieving Department Data Objects for a Collection of Parts Objects
This example shows you how to retrieve Department Data objects for a collection of Parts objects. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetDepartmentDatasForParts?$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",
"parts": [
"OR:wt.part.WTPart:183875",
"OR:wt.part.WTPart:183887",
"OR:wt.part.WTPart:183910"
]
}