Updating Raw Material Alternate Made From Links
“Alternate Made From Link” is the link between a Made From Set and its parent part.
You can update single or multiple “Raw Material Alternate Made From Links” for a parent part by specifying the link OIDs and their attributes in the request body. You can also update the AlternateNumber attribute for the specified “Raw Material Alternate Made From Link”. You cannot specify the alternate number that is already consumed by another Made From Set object available for the corresponding plant for the same parent part. If you do not specify the attribute, the existing alternate number is used while updating the specified “Raw Material Alternate Made From Link”.
You can update both modeled and all other types of attributes associated with the link object.
This bounded action is available for part or its subtype (excluding Manufacturing Information and Resources) objects only when Windchill MPMLink is installed.
You can also update the “Raw Material Alternate Made From Links” for a parent part in the context of change (change notice or change task), when the Track “Made From” History Through Change Notice preference is set to Yes.
* 
When the Track “Made From” History Through Change Notice preference is set to Yes, you must specify the ChangeOid attribute and its value.
When the preference is set to Yes, “Manufacturing History Objects” are added in the user interface in the Resulting Objects table of the change object specified in the ChangeOid attribute value. You must have Create permissions to the Manufacturing History object.
Example: Updating Multiple Raw Material Alternate Links in Context of Change
This example shows you how to update two “Raw Material Alternate Links” for the specified parent part in the context of change. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/ProdMgmt/Parts('OR:wt.part.WTPart:204541')/PTC.ProdMgmt.UpdateRawMaterialAlternateLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"RawMaterialAlternateLinks": [
{
"ID": "OR:wt.mpm.rawmaterial.RMAlternateLink:204264",
"Description": "Description1",
"TestAttribute": "test"
},
{
"ID": "OR:wt.mpm.rawmaterial.RMAlternateLink:204253",
"Description": "Description2"
}
],
"ChangeOid": "OR:wt.change2.WTChangeActivity2:198319"
}
¿Fue esto útil?