Actions Available in the BOM Transformation Domain
The following are some of the key actions available for the BOM transformation domain:
• GetExtendedDatas—Returns the ExtendedDatas for the specified ExtendedData OIDs.
• GetDepartmentDatas—Returns the DepartmentDatas for a plant for the specified Department Data OIDs.
• GetEquivalenceNetworkForParts—Returns the Equivalence Networks for a given set of parts.
• GetCoproduceDataWithInlineNavCriteria—Returns the information for a single Co-produce object or a collection of Co-produce objects using the inline navigation criteria passed in the navigationCriteria parameter.
• GetCoproduceData—Returns the information for a single Co-produce object or a collection of Co-produce objects. If NavigationCriteriaId is passed as a parameter, the Navigation Criteria with the given ID is used, else the defaults are used.
• GetCoproduceForPartsWithInlineNavCriteria—Returns the Co-produce information for a single Part or a collection of Parts using the inline navigation criteria passed in the navigationCriteria parameter.
• GetCoproduceForParts—Returns the Co-produce information for a single Part or a collection of Parts. If NavigationCriteriaId is passed as a parameter, the Navigation Criteria with the given ID is used, else the defaults are used.
• GetMadeFromSetForPartsWithInlineNavCriteria—Returns the Made From Sets for Parts using the inline navigation criteria passed in the navigationCriteria parameter.
• GetMadeFromSetForParts—Returns the Made From Sets for Parts. If NavigationCriteriaId is passed as a parameter, the Navigation Criteria with the given ID is used, else the defaults are used.
• GetMadeFromSetDataWithInlineNavCriteria—Returns Made From Parts information for a single Made From Set or a collection of Made From Sets using the inline navigation criteria passed in the navigationCriteria parameter.
• GetMadeFromSetData—Returns Made From Parts information for a single Made From Set or a collection of Made From Sets. If NavigationCriteriaId is passed as a parameter, the Navigation Criteria with the given ID is used, else the defaults are used.
• CreateCoproduceWithInlineNavCriteria—Creates Co-produce objects using the inline navigation criteria passed in the navigationCriteria parameter.
• CreateCoproduce—Creates Co-produce objects. If NavigationCriteriaId is passed as a parameter, the Navigation Criteria with the given ID is used, else the defaults are used.
• CreateMadeFromSets—Creates Made From Sets for single or multiple Part objects. You can optionally provide Change Notice or Change Task ID for tracking the created Made From Set. When the preference Track “Made From” History Through Change Notice is set to Yes, you must specify the ChangeOid attribute and its value.
• AddCoproduceMembersWithInlineNavCriteria—Adds Secondary Parts for Co-produce using the inline navigation criteria passed in the navigationCriteria parameter.
• AddCoproduceMembers—Adds Secondary Parts for Co-produce. If NavigationCriteriaId is passed as a parameter, the Navigation Criteria with the given ID is used, else the defaults are used.
• InsertMadeFrom—Inserts Made From Parts for Part objects or Made From Set objects.
• UpdateCoproduceStructureWithInlineNavCriteria—Updates the structure of single or multiple Co-produce objects using the inline navigation criteria passed in the navigationCriteria parameter.
• UpdateCoproduceStructure—Updates the structure of single or multiple Co-produce objects. If NavigationCriteriaId is passed as a parameter, the Navigation Criteria with the given ID is used, else the defaults are used.
• UpdateSecondaryCoproduceLinks—Updates single or multiple Secondary Co-produce links for a Co-produce object in context of Change (Change Task or Change Notice).
• UpdateCoProduceUsageLinks—Updates single or multiple Co-produce Usage Links for a Co-produce object in context of Change (Change Task or Change Notice).
• UpdateCoproduces—Updates single or multiple Co-produce objects. You can optionally provide Change Notice or Change Task ID for tracking the updated Co-produce objects.
• EditCoproducesSecurityLabels—Edits Security Labels for Coproduce objects.
• EditMadeFromSetsSecurityLabels—Edits Security Labels for Made From Set objects.
• UpdateRawMaterialLinks—Updates single or multiple Manufacturing Raw Material Links for a Part or Made From Set object. You can optionally provide Change Notice or Change Task ID for tracking the updated Raw Material Links. When the preference Track “Made From” History Through Change Notice is set to Yes, you must specify the ChangeOid attribute and its value.
• UpdateMadeFromSets—Updates single or multiple Made From Set objects. You can optionally provide Change Notice or Change Task ID for tracking the updated Made From Set objects.
• UpdateCommonPropertiesForDepartmentDatas—Update common properties of single or multiple Department Data objects.
• UpdateCommonPropertiesForExtendedDatas—Update common properties of single or multiple Extended Data objects.
• RemovePlantDataAssociations—Removes single or multiple associations between Parts and Plant Data.
• RemoveDepartmentDataAssociations—Removes single or multiple associations between Parts and Department Data.
• RemoveMadeFromAssociations—Removes single or multiple associations between Parts and Raw Materials.
• DeleteCoproduces—Deletes existing single or multiple Co-produce objects.
• DeleteMadeFromSets—Deletes existing single or multiple Made From Set objects.
• GetManufacturingBOM—Returns the manufacturing Bill of Material for the navigation criteria passed in the NavigationCriteria parameter. If NavigationCriteria is not passed as a parameter, then the default navigation criteria is applied.
For example, the request URI
POST /Windchill/servlet/odata/BomTransformation/XBOMParts('<RootPartOID>')/PTC.BomTransformation.GetManufacturingBOM?$expand=Components($levels=max)
returns the following response:
{
"@odata.context": "$metadata#TreeStructureItems",
"ObjectId": "OR:wt.part.WTPart:387493",
"LinkId": null,
"ObjectName": "DemoRoot1",
"ObjectNumber": "0000000659",
"PathId": null,
"PVTreeId": "/",
"PVParentTreeId": null,
"@PTC.AppliedContainerContext.LocalTimeZone": "Europe/Warsaw",
"Components": [
{
"ObjectId": "OR:wt.part.WTPart:391422",
"LinkId": "OR:wt.part.WTPartUsageLink:388393",
"ObjectName": "C2",
"ObjectNumber": "0000000672",
"PathId": "ceb35595-dffa-408b-9bfa-03dadc2a78ac",
"PVTreeId": "/0:387493-388347-ceb35595-dffa-408b-9bfa-03dadc2a78ac",
"PVParentTreeId": "/",
"Components": [
{
"ObjectId": "OR:wt.part.WTPart:388411",
"LinkId": "OR:wt.part.WTPartUsageLink:391424",
"ObjectName": "C21",
"ObjectNumber": "0000000673",
"PathId": "ceb35595-dffa-408b-9bfa-03dadc2a78ac|33945a44-a8d4-4700-9242-b2558b67907b",
"PVTreeId": "/0:387493-388347-ceb35595-dffa-408b-9bfa-03dadc2a78ac/0:391422-388408-33945a44-a8d4-4700-9242-b2558b67907b",
"PVParentTreeId": "/0:387493-388347-ceb35595-dffa-408b-9bfa-03dadc2a78ac"
}
]
},
{
"ObjectId": "OR:wt.part.WTPart:391407",
"LinkId": "OR:wt.part.WTPartUsageLink:387549",
"ObjectName": "C1",
"ObjectNumber": "0000000660",
"PathId": "3d6a24f4-9ca7-4636-8317-0942b4ae7f40",
"PVTreeId": "/0:387493-387503-3d6a24f4-9ca7-4636-8317-0942b4ae7f40",
"PVParentTreeId": "/",
"Components": [
{
"ObjectId": "OR:wt.part.WTPart:387610",
"LinkId": "OR:wt.part.WTPartUsageLink:391409",
"ObjectName": "C12",
"ObjectNumber": "0000000662",
"PathId": "3d6a24f4-9ca7-4636-8317-0942b4ae7f40|ea1d956a-b436-4ecb-be7d-8c697aee2b92",
"PVTreeId": "/0:387493-387503-3d6a24f4-9ca7-4636-8317-0942b4ae7f40/0:391407-387607-ea1d956a-b436-4ecb-be7d-8c697aee2b92",
"PVParentTreeId": "/0:387493-387503-3d6a24f4-9ca7-4636-8317-0942b4ae7f40"
},
{
"ObjectId": "OR:wt.part.WTPart:387568",
"LinkId": "OR:wt.part.WTPartUsageLink:391410",
"ObjectName": "C11",
"ObjectNumber": "0000000661",
"PathId": "3d6a24f4-9ca7-4636-8317-0942b4ae7f40|2db3dd1e-0077-4ed2-b114-7970e7a09d25",
"PVTreeId": "/0:387493-387503-3d6a24f4-9ca7-4636-8317-0942b4ae7f40/0:391407-387565-2db3dd1e-0077-4ed2-b114-7970e7a09d25",
"PVParentTreeId": "/0:387493-387503-3d6a24f4-9ca7-4636-8317-0942b4ae7f40"
}
]
}
]
}
• GetRawMaterialsForPartsWithInlineNavCriteria—Retrieves the raw materials for parts using the Navigation Criteria passed as a parameter.
• GetRawMaterialsForParts—Retrieves the raw materials for parts. If NavigationCriteriaId is passed as a parameter, the Navigation Criteria with the given ID is used else the defaults are used.
• GetExtendedDatasForPartsWithInlineNavCriteria—Returns the ExtendedDatas for Parts for the Navigation Criteria passed in the NavigationCriteria parameter.
• GetExtendedDatasForParts—Returns the ExtendedDatas for parts. If NavigationCriteriaId is passed as a parameter, the Navigation Criteria with the given ID will be used, else the system default navigation criteria are used.
• GetDepartmentDatasForPartsWithInlineNavCriteria—Returns the DepartmentDatas for parts using the Navigation Criteria passed as the navigationCriteria parameter.
• GetDepartmentDatasForParts—Returns the DepartmentDatas for parts. If NavigationCriteriaId is passed as a parameter, the Navigation Criteria with the given ID is used, else system default navigation criteria is applied, else system default navigation criteria is applied.
• GetDepartmentDatasFromPlantWithInlineNavCriteria—Returns the DepartmentDatas for a plant using the navigation criteria passed in the navigationCriteria parameter.
• GetDepartmentDatasFromPlant—Returns the DepartmentDatas for a plant. If NavigationCriteriaId is passed as a parameter, the Navigation Criteria with the given ID will be used
• AssignPlant—Creates plant data for a particular part. The user can optionally provide Change Notice or Change Task ID to be used for tracking plant assignment.
• CreateDepartmentData—Creates department data for a particular part. User can optionally provide Change Notice or Change Task ID to be used for tracking newly created Department Data objects.
• CreateDepartmentDataForPlantData—Create department data for particular Plant Data. User can optionally provide Change Notice or Change Task ID to be used for tracking newly created Department Data objects.
|
• In Windchill REST Services 2.4, the following Actions have been hidden for the Windchill 11.1 M020, 11.2.1.0, and 12.0.2.0 versions, as those are not functional with the Windchill releases:
GetRawMaterialsForPartsWithInlineNavCriteria(parts,NavigationCriteria):Collection(PTC.BomTransformation.RawMaterialListItem)
GetRawMaterialsForParts(parts,navigationCriteriaId):Collection(PTC.BomTransformation.RawMaterialListItem)
• In Windchill REST Services 2.4, the following Actions have been hidden for the Windchill 11.1 M020 and 11.2.1.0 versions, as those are not functional with the Windchill releases:
GetExtendedDatasForPartsWithInlineNavCriteria(parts,NavigationCriteria):Collection(PTC.BomTransformation.ExtendedDataListItem)
GetExtendedDatasForParts(parts,navigationCriteriaId):Collection(PTC.BomTransformation.ExtendedDataListItem)
GetDepartmentDatasForPartsWithInlineNavCriteria(parts,NavigationCriteria,departmentDataTypes,supplyChains,locations,categories,views):Collection(PTC.BomTransformation.DepartmentDataListItem)
GetDepartmentDatasForParts(parts,navigationCriteriaId):Collection(PTC.BomTransformation.DepartmentDataListItem)
GetDepartmentDatasFromPlantWithInlineNavCriteria(plants,NavigationCriteria,departmentDataTypes,supplyChains,locations,categories):Collection(PTC.BomTransformation.DepartmentDataForPlantListItem)
GetDepartmentDatasFromPlant(plants,navigationCriteriaId):Collection(PTC.BomTransformation.DepartmentDataForPlantListItem)
AssignPlant(parts,plants,changeOid):Collection(PTC.BomTransformation.ExtendedDataListItem)
CreateDepartmentData(parts,departmentData,NavigationCriteria,changeOid,view):Collection(PTC.BomTransformation.DepartmentDataListItem)
CreateDepartmentDataForPlantData(plantData,departmentData,changeOid):Collection(PTC.BomTransformation.DepartmentDataForPlantListItem)
|
Refer to the domain EDM for a complete list of actions.