Creating Multiple MPMOperationUsageLinks
To create an MPMOperationUsageLink between an Operation Holder (Process Plan, Standard Procedure, Operation, or Sequence) or its subtype and a Standard Operation, you must first check out the Operation Holder object. To create single or multiple MPMOperationUsageLinks, you must specify the OIDs of the Standard Operation or its subtype in the request body.
* 
To create an MPMOperationUsageLink, you must specify only the latest version of the Standard Operation object or its subtype.
Example: Creating Multiple MPMOperationUsageLinks for a Specific Process Plan
This example shows you how to create two MPMOperationUsageLinks for a Process Plan by specifying the Process Plan OID in the request URI. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/ProcessPlans('OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:193742')/PTC.MfgProcMgmt.AssociateStandardOperations
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"OperationUsageLink": [
{
"Operation@odata.bind": "Operations(OR:com.ptc.windchill.mpml.processplan.operation.MPMStandardOperation:366273)"
},
{
"Operation@odata.bind": "Operations(OR:com.ptc.windchill.mpml.processplan.operation.MPMStandardOperation:366272)"
}
]
}
Example: Creating Multiple MPMOperationUsageLinks for a Specific Standard Procedure
This example shows you how to create two MPMOperationUsageLinks for a Standard Procedure by specifying the Standard Procedure OID in the request URI. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/StandardProcedures('OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:193360')/PTC.MfgProcMgmt.AssociateStandardOperations
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"OperationUsageLink": [
{
"Operation@odata.bind": "Operations(OR:com.ptc.windchill.mpml.processplan.operation.MPMStandardOperation:366273)"
},
{
"Operation@odata.bind": "Operations(OR:com.ptc.windchill.mpml.processplan.operation.MPMStandardOperation:366272)"
}
]
}
Example: Creating Multiple MPMOperationUsageLinks for a Specific Operation
This example shows you how to create two MPMOperationUsageLinks for an Operation by specifying the Operation OID in the request URI. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/Operations('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:366090')/PTC.MfgProcMgmt.AssociateStandardOperations
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"OperationUsageLink": [
{
"Operation@odata.bind": "Operations(OR:com.ptc.windchill.mpml.processplan.operation.MPMStandardOperation:366273)"
},
{
"Operation@odata.bind": "Operations(OR:com.ptc.windchill.mpml.processplan.operation.MPMStandardOperation:366272)"
}
]
}
Example: Creating Multiple MPMOperationUsageLinks for a Specific Sequence
This example shows you how to create two MPMOperationUsageLinks for a Sequence by specifying the Sequence OID in the request URI. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/Sequences('OR:com.ptc.windchill.mpml.processplan.sequence.MPMSequence:366130')/PTC.MfgProcMgmt.AssociateStandardOperations
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"OperationUsageLink": [
{
"Operation@odata.bind": "Operations(OR:com.ptc.windchill.mpml.processplan.operation.MPMStandardOperation:366273)"
},
{
"Operation@odata.bind": "Operations(OR:com.ptc.windchill.mpml.processplan.operation.MPMStandardOperation:366272)"
}
]
}
Example: Creating Multiple MPMOperationUsageLinks for an Operation Holder
This example shows you how to create two MPMOperationUsageLinks for an Operation Holder such as Standard Operation by specifying the Standard Operation OID in the request URI. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/OperationHolders('OR:com.ptc.windchill.mpml.processplan.operation.MPMStandardOperation:366186')/PTC.MfgProcMgmt.AssociateStandardOperations
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"OperationUsageLink": [
{
"Operation@odata.bind": "Operations(OR:com.ptc.windchill.mpml.processplan.operation.MPMStandardOperation:366273)"
},
{
"Operation@odata.bind": "Operations(OR:com.ptc.windchill.mpml.processplan.operation.MPMStandardOperation:366272)"
}
]
}
Was this helpful?