Retrieving Made From Parts for a Collection of Made From Sets
You can retrieve the information for Made From Parts (Raw Materials) for a single Made From Set or a collection of Made From Sets by specifying the Made From Set OIDs in the request body.
This functionality is available only when Windchill MPMLink is installed.
Example: Retrieving Made From Parts for Multiple Made From Sets for a Specific Navigation Criteria
This example shows you how to retrieve Made From Parts (Raw Materials) for each of the two Made From Sets for the Navigation Criteria OID specified in the request body. Use the following POST URI with the expand and request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetData?$expand=PartMadeFrom
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"
}
To get information about Raw Material Links, use the following POST URI with expand:
URI
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetData?$expand=PartMadeFrom,MadeFromLink
To get information about the Raw Materials under each Raw Material Link, use the following POST URI with expand:
URI
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetData?$expand=PartMadeFrom,MadeFromLink($expand=MadeFrom)
Example: Retrieving the Product Effectivities on Raw Material Links for Multiple 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 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/GetMadeFromSetData?$expand=PartMadeFrom,MadeFromLink($expand=Effectivities)
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 the Pending Effectivities on Raw Material Links for Multiple 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 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/GetMadeFromSetData?$expand=PartMadeFrom,MadeFromLink($expand=PendingEffectivities)
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"
}
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 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/GetMadeFromSetData?$expand=PartMadeFrom,MadeFromLink($expand=PendingEffectivities,Effectivities)
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 Made From Parts for Multiple Made From Sets with Inline Navigation Criteria
This example shows you how to retrieve Made From Parts (Raw Materials) for each of the two Made From Sets with inline Navigation Criteria. Use the following POST URI with the expand and request body.
URI
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetDataWithInlineNavCriteria?$expand=PartMadeFrom
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"MadeFromSets": [
{
"ID": "OR:wt.part.WTPart:200476"
},
{
"ID": "OR:wt.part.WTPart:200478"
}
],
"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
}
}
To get information about Raw Material Links, use the following POST URI with expand:
URI
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetDataWithInlineNavCriteria?$expand=PartMadeFrom,MadeFromLink
To get information about the Raw Materials under each Raw Material Link, use the following POST URI with expand:
URI
POST /Windchill/servlet/odata/BomTransformation/GetMadeFromSetDataWithInlineNavCriteria?$expand=PartMadeFrom,MadeFromLink($expand=MadeFrom)
Example: Retrieving the Product Effectivities on Raw Material Links for Multiple Made From Sets with Inline Navigation Criteria
You can retrieve the product effectivities (Date, Lot, Unit, or Serial) associated with the Raw Material Links for multiple Made From Sets with 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/GetMadeFromSetDataWithInlineNavCriteria?$expand=PartMadeFrom,MadeFromLink($expand=Effectivities)
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"MadeFromSets": [
{
"ID": "OR:wt.part.WTPart:200476"
},
{
"ID": "OR:wt.part.WTPart:200478"
}
],
"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 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 Made From Sets with 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/GetMadeFromSetDataWithInlineNavCriteria?$expand=PartMadeFrom,MadeFromLink($expand=PendingEffectivities)
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"MadeFromSets": [
{
"ID": "OR:wt.part.WTPart:200476"
},
{
"ID": "OR:wt.part.WTPart:200478"
}
],
"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 Made From Sets with 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/GetMadeFromSetDataWithInlineNavCriteria?$expand=PartMadeFrom,MadeFromLink($expand=PendingEffectivities,Effectivities)
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"MadeFromSets": [
{
"ID": "OR:wt.part.WTPart:200476"
},
{
"ID": "OR:wt.part.WTPart:200478"
}
],
"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
}
}