Retrieving Made From Set Information for a Collection of Finished Parts
You can retrieve Made From Set information for single finished part or a collection of finished parts by specifying the finished part OIDs in the request body.
This functionality is available only when MPMLink is installed.
Example: Retrieving Made From Set Information for Multiple Finished Parts
This example shows you how to retrieve Made From Set information for two finished parts specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetForParts
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 Made From Set Information for Multiple Finished Parts for a Specific Navigation Criteria
This example shows you how to retrieve Made From Set information for two finished parts with navigation criteria specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetForParts
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"
}
URI with Expand
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetForParts?$expand=MadeFromSets($expand=AlternateMadeFromLinkToParent($expand=AlternateFor),MadeFromLink($expand=MadeFrom))
Example: Retrieving the Product Effectivities on Raw Material Links for Multiple Finished Parts with Made From Sets for a Specific Navigation Criteria
You can retrieve the product effectivities (Date, Lot, Unit, or Serial) associated with the Raw Material Links for multiple finished parts with Made From Sets for a specific navigation criteria using expand on Effectivities on the MadeFromLink navigation. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetForParts?$expand=MadeFromSets($expand=MadeFromLink($expand=Effectivities))
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 the Pending Effectivities on Raw Material Links for Multiple Finished Parts with Made From Sets for a Specific Navigation Criteria
You can retrieve the pending effectivities (Date, Lot, Unit, or Serial) associated with the Raw Material Links for multiple finished parts with Made From Sets for a specific navigation criteria using expand on PendingEffectivities on the MadeFromLink navigation. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetForParts?$expand=MadeFromSets($expand=MadeFromLink($expand=PendingEffectivities))
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"
}
You can also retrieve both the pending and product effectivities (Date, Lot, Unit, or Serial) associated with the Raw Material Links for single or multiple finished parts with Made From Sets for a specific navigation criteria using expand on PendingEffectivities,Effectivities on the MadeFromLink navigation. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetForParts?$expand=MadeFromSets($expand=MadeFromLink($expand=PendingEffectivities,Effectivities))
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 Made From Set Information for Multiple Finished Parts with Inline Navigation Criteria
This example shows you how to retrieve Made From Set information for two finished parts with inline navigation criteria. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetForPartsWithInlineNavCriteria
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Parts": [
{
"ID": "OR:wt.part.WTPart:198496"
},
{
"ID": "OR:wt.part.WTPart:198531"
}
],
"NavigationCriteria": {
"ApplicableType": "PTC.ProdMgmt.Part",
"ApplicationName": null,
"ApplyToTopLevelObject": true,
"Centricity": false,
"ConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.WTPartStandardConfigSpec",
"WorkingIncluded": true,
"View": "Plant1",
"LifeCycleState": null,
"Variation1": null,
"Variation2": null
}
],
"CreatedOn": "2022-03-26T10:30:30+05:30",
"Filters": [],
"HideUnresolvedDependents": false,
"LastModified": "2022-03-26T10:30:30+05:30",
"Name": "DefaultNCForPlant1",
"SharedToAll": false,
"UseDefaultForUnresolved": false
}
}
URI with Expand
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetForPartsWithInlineNavCriteria?$expand=MadeFromSets($expand=AlternateMadeFromLinkToParent($expand=AlternateFor),MadeFromLink($expand=MadeFrom))
Example: Retrieving the Product Effectivities on Raw Material Links for Multiple Finished Parts with Made From Sets and Inline Navigation Criteria
You can retrieve the product effectivities (Date, Lot, Unit, or Serial) associated with the Raw Material Links for multiple finished parts with Made From Sets and inline navigation criteria using expand on Effectivities on the MadeFromLink navigation. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetForPartsWithInlineNavCriteria?$expand=MadeFromSets($expand=MadeFromLink($expand=Effectivities))
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Parts": [
{
"ID": "OR:wt.part.WTPart:198496"
},
{
"ID": "OR:wt.part.WTPart:198531"
}
],
"NavigationCriteria": {
"ApplicableType": "PTC.ProdMgmt.Part",
"ApplicationName": null,
"ApplyToTopLevelObject": true,
"Centricity": false,
"ConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.WTPartStandardConfigSpec",
"WorkingIncluded": true,
"View": "Plant1",
"LifeCycleState": null,
"Variation1": null,
"Variation2": null
}
],
"CreatedOn": "2022-03-26T10:30:30+05:30",
"Filters": [],
"HideUnresolvedDependents": false,
"LastModified": "2022-03-26T10:30:30+05:30",
"Name": "DefaultNCForPlant1",
"SharedToAll": false,
"UseDefaultForUnresolved": false
}
}
Example: Retrieving the Pending Effectivities on Raw Material Links for Multiple Finished Parts with Made From Sets and Inline Navigation Criteria
You can retrieve the pending effectivities (Date, Lot, Unit, or Serial) associated with the Raw Material Links for multiple finished parts with Made From Sets and inline navigation criteria using expand on PendingEffectivities on the MadeFromLink navigation. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetForPartsWithInlineNavCriteria?$expand=MadeFromSets($expand=MadeFromLink($expand=PendingEffectivities))
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Parts": [
{
"ID": "OR:wt.part.WTPart:198496"
},
{
"ID": "OR:wt.part.WTPart:198531"
}
],
"NavigationCriteria": {
"ApplicableType": "PTC.ProdMgmt.Part",
"ApplicationName": null,
"ApplyToTopLevelObject": true,
"Centricity": false,
"ConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.WTPartStandardConfigSpec",
"WorkingIncluded": true,
"View": "Plant1",
"LifeCycleState": null,
"Variation1": null,
"Variation2": null
}
],
"CreatedOn": "2022-03-26T10:30:30+05:30",
"Filters": [],
"HideUnresolvedDependents": false,
"LastModified": "2022-03-26T10:30:30+05:30",
"Name": "DefaultNCForPlant1",
"SharedToAll": false,
"UseDefaultForUnresolved": false
}
}
You can also retrieve both the pending and product effectivities (Date, Lot, Unit, or Serial) associated with the Raw Material Links for single or multiple finished parts with Made From Sets and inline navigation criteria using expand on PendingEffectivities,Effectivities on the MadeFromLink navigation. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetForPartsWithInlineNavCriteria?$expand=MadeFromSets($expand=MadeFromLink($expand=PendingEffectivities,Effectivities))
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Parts": [
{
"ID": "OR:wt.part.WTPart:198496"
},
{
"ID": "OR:wt.part.WTPart:198531"
}
],
"NavigationCriteria": {
"ApplicableType": "PTC.ProdMgmt.Part",
"ApplicationName": null,
"ApplyToTopLevelObject": true,
"Centricity": false,
"ConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.WTPartStandardConfigSpec",
"WorkingIncluded": true,
"View": "Plant1",
"LifeCycleState": null,
"Variation1": null,
"Variation2": null
}
],
"CreatedOn": "2022-03-26T10:30:30+05:30",
"Filters": [],
"HideUnresolvedDependents": false,
"LastModified": "2022-03-26T10:30:30+05:30",
"Name": "DefaultNCForPlant1",
"SharedToAll": false,
"UseDefaultForUnresolved": false
}
}