Creating Multiple MPMEPMDocumentDescribeLinks
You can create MPMEPMDocumentDescribeLinks between an EPMDocumentManageables (Process Plan, Standard Procedure, Operation, or Sequence) object and single or multiple EPMDocuments by specifying the EPMDocument OIDs in the request body. To create MPMEPMDocumentDescribeLinks, you must first check out the EPMDocumentManageables object.
Example: Creating MPMEPMDocumentDescribeLinks for a Specific Process Plan
This example shows you how to create two MPMEPMDocumentDescribeLinks between a Process Plan specified in the request URI and two EPM documents specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/EPMDocumentManageables('OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:210158')/PTC.MfgProcMgmt.CreateMPMEPMDocumentDescribeLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"EPMDocumentDescribeLink": [
{
"ID": "OR:wt.epm.EPMDocument:206086"
},
{
"ID": "OR:wt.epm.EPMDocument:206118"
}
]
}
Similarly, you can create EPMDocumentDescribeLinks for a specific Standard Procedure by specifying its OID in the request URI.
Example: Creating MPMEPMDocumentDescribeLinks for a Specific Operation
This example shows you how to create two MPMEPMDocumentDescribeLinks between an Operation specified in the request URI and two EPM documents specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/EPMDocumentManageables('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:366090')/PTC.MfgProcMgmt.CreateMPMEPMDocumentDescribeLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"EPMDocumentDescribeLink": [
{
"ID": "OR:wt.epm.EPMDocument:206086"
},
{
"ID": "OR:wt.epm.EPMDocument:206118"
}
]
}
Example: Creating MPMEPMDocumentDescribeLinks for a Specific Sequence
This example shows you how to create two MPMEPMDocumentDescribeLinks between a Sequence specified in the request URI and two EPM documents specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/EPMDocumentManageables('OR:com.ptc.windchill.mpml.processplan.sequence.MPMSequence:366130')/PTC.MfgProcMgmt.CreateMPMEPMDocumentDescribeLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"EPMDocumentDescribeLink": [
{
"ID": "OR:wt.epm.EPMDocument:206086"
},
{
"ID": "OR:wt.epm.EPMDocument:206118"
}
]
}
Was this helpful?