Retrieving Extended Data for Made From Set Objects
Example: Retrieving Extended Data for All Made From Set Objects
This example shows you how to retrieve extended data (plant data and enterprise data) for all Made From Set objects. Use the following GET URI.
URI
GET /Windchill/servlet/odata/BomTransformation/MadeFromSets?$expand=ExtendedData
Example: Retrieving Extended Data for Multiple Made From Set Objects
This example shows you how to retrieve extended data (plant data and enterprise data) for two Made From Set objects. Use the following POST URI.
URI
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetData?$expand=ExtendedData
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"MadeFromSets": [
{
"ID": "OR:wt.part.WTPart:198892"
},
{
"ID": "OR:wt.part.WTPart:198763"
}
]
}
Example: Retrieving Extended Data for Multiple Made From Set Objects for Specific Navigation Criteria
This example shows you how to retrieve extended data (plant data and enterprise data) for two Made From Set objects for specific navigation criteria. Use the following POST URI.
URI
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetData?$expand=ExtendedData
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"MadeFromSets": [
{
"ID": "OR:wt.part.WTPart:198892"
},
{
"ID": "OR:wt.part.WTPart:198763"
}
],
"navigationCriteriaId": "OR:wt.filter.NavigationCriteria:199034"
}
Example: Retrieving Extended Data for Multiple Made From Set Objects with Inline Navigation Criteria
This example shows you how to retrieve extended data (plant data and enterprise data) for two Made From Set objects with inline navigation criteria. Use the following POST URI.
URI
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetDataWithInlineNavCriteria?$expand=ExtendedData
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"MadeFromSets": [
{
"ID": "OR:wt.part.WTPart:203619"
},
{
"ID": "OR:wt.part.WTPart:206758"
}
],
"NavigationCriteria": {
"ApplicableType": "PTC.ProdMgmt.Part",
"ApplicationName": null,
"ApplyToTopLevelObject": false,
"Centricity": false,
"ConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.PlantStandardConfigSpec",
"WorkingIncluded": false,
"View": "Manufacturing",
"LifeCycleState": null
}
],
"Filters": [
{
"@odata.type": "#PTC.NavCriteria.PlantFilter",
"IsIncludeNonVSEDObjs": false,
"Rules": [
{
"RuleOrder": 0,
"ObjectTypeIdentifier": "PTC.BomTransformation.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": "wt.vc.views.View:30830",
"ExpressionOrder": 0,
"Comparison": {
"Value": "EQUAL",
"Display": "="
}
}
]
}
]
}
],
"HideUnresolvedDependents": false,
"SharedToAll": false,
"UseDefaultForUnresolved": false
}
}
Example: Retrieving Extended Data for Multiple Finished Parts with Made From Set Objects
This example shows you how to retrieve extended data (plant data and enterprise data) for two finished parts with Made From Set objects. Use the following POST URI.
URI
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetForParts?$expand=MadeFromSets($expand=ExtendedData)
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Parts": [
{
"ID": "OR:wt.part.WTPart:203891"
},
{
"ID": "OR:wt.part.WTPart:204298"
}
]
}
Example: Retrieving Extended Data for Multiple Finished Parts with Made From Set Objects for Specific Navigation Criteria
This example shows you how to retrieve extended data (plant data and enterprise data) for two finished parts with Made From Set objects for a specific navigation criteria. Use the following POST URI.
URI
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetForParts?$expand=MadeFromSets($expand=ExtendedData)
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Parts": [
{
"ID": "OR:wt.part.WTPart:203891"
},
{
"ID": "OR:wt.part.WTPart:204298"
}
],
"navigationCriteriaId": "OR:wt.filter.NavigationCriteria:203920"
}
Example: Retrieving Extended Data for Multiple Finished Parts with Made From Set Objects with Inline Navigation Criteria
This example shows you how to retrieve extended data (plant data and enterprise data) for two finished parts with Made From Set objects with inline navigation criteria. Use the following POST URI.
URI
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetForPartsWithInlineNavCriteria?$expand=MadeFromSets($expand=ExtendedData)
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Parts": [
{
"ID": "OR:wt.part.WTPart:203891"
},
{
"ID": "OR:wt.part.WTPart:204298"
}
],
"NavigationCriteria": {
"ApplicableType": "PTC.ProdMgmt.Part",
"ApplicationName": null,
"ApplyToTopLevelObject": false,
"Centricity": false,
"ConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.PlantStandardConfigSpec",
"WorkingIncluded": false,
"View": "Manufacturing",
"LifeCycleState": null
}
],
"Filters": [
{
"@odata.type": "#PTC.NavCriteria.PlantFilter",
"IsIncludeNonVSEDObjs": false,
"Rules": [
{
"RuleOrder": 0,
"ObjectTypeIdentifier": "PTC.BomTransformation.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": "wt.vc.views.View:30830",
"ExpressionOrder": 0,
"Comparison": {
"Value": "EQUAL",
"Display": "="
}
}
]
}
]
}
],
"HideUnresolvedDependents": false,
"SharedToAll": false,
"UseDefaultForUnresolved": false
}
}