Windchill REST Services > Windchill REST Services Domain Capabilities > Examples for Basic REST Operations > Examples for the PTC Manufacturing Process Management Domain > Retrieving Assigned Usage Expression for a Link
  
Retrieving Assigned Usage Expression for a Link
You can retrieve the assigned usage expression for each of the following links marked as “Expression Assignable”:
MPMPartToProcessPlanLink
MPMOperationUsageLink
MPMSequenceUsageLink
MPMOperationToPartLink
MPMOperationToWorkCenterLink
MPMOperationToStandardCCLink
MPMOperationToResourceLink
MPMStandardCCToProcessPlanLink
MPMStandardCCUsageToProcessPlanLink
MPMStandardCCToResourceLink
MPMStandardCCUsageToResourceLink
The following examples show you how to retrieve assigned usage expression for various links.
This example shows you how to retrieve assigned usage expression for an MPMOperationToPartLink. Use the following GET request.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/Operations('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:202313')/OperationToPartLink('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperationToPartLink:202787')/PTC.MfgProcMgmt.GetAssignedExpression
This example shows you how to retrieve assigned usage expression for an MPMOperationToStandardCCLink. Use the following GET request.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/Operations('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:202313')/StandardCCLinks('OR:com.ptc.windchill.mpml.pmi.MPMOperationToStandardCCLink:202383')/PTC.MfgProcMgmt.GetAssignedExpression
This example shows you how to retrieve assigned usage expression for an MPMStdCCUsageToResourceLink. Use the following GET request.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/Operations('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:202313')/StandardCCLinks('OR:com.ptc.windchill.mpml.pmi.MPMOperationToStandardCCLink:202383')/MPMStandardCCsUsageToResourceLink('OR:com.ptc.windchill.mpml.pmi.MPMStdCCUsageToResourceLink:203026')/PTC.MfgProcMgmt.GetAssignedExpression
This example shows you how to retrieve assigned usage expression for an MPMStdCCUsageToProcessPlanLink. Use the following GET request.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/Operations('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:202313')/StandardCCLinks('OR:com.ptc.windchill.mpml.pmi.MPMOperationToStandardCCLink:202383')/MPMStdCCUsageToProcessPlanLink('OR:com.ptc.windchill.mpml.pmi.MPMStdCCUsageToProcessPlanLink:204121')/PTC.MfgProcMgmt.GetAssignedExpression
This example shows you how to retrieve assigned usage expression for an MPMOperationToWorkCenterLink. Use the following GET request.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/Operations('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:202313')/OperationToWorkCenterLinks('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperationToWorkCenterLink:202866')/PTC.MfgProcMgmt.GetAssignedExpression
This example shows you how to retrieve assigned usage expression for an MPMPartToProcessPlanLink. Use the following GET request.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/Materials('OR:wt.part.WTPart:202645')/PartToProcessPlanLinks('OR:com.ptc.windchill.mpml.processplan.MPMPartToProcessPlanLink:202697')/PTC.MfgProcMgmt.GetAssignedExpression
This example shows you how to retrieve assigned usage expression for an MPMOperationToConsumableLink. Use the following GET request.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/Operations('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:202313')/OperationToConsumableLinks('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperationToConsumableLink:202922')/PTC.MfgProcMgmt.GetAssignedExpression
This example shows you how to retrieve assigned usage expression for an MPMStandardCCToProcessPlanLink. Use the following GET request.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/StandardCCs('VR:com.ptc.windchill.mpml.pmi.MPMStandardCC:203001')/StandardCCToProcessPlanLinks('OR:com.ptc.windchill.mpml.pmi.MPMStandardCCToProcessPlanLink:203008')/PTC.MfgProcMgmt.GetAssignedExpression
This example shows you how to retrieve assigned usage expression for an MPMStandardCCToResourceLink. Use the following GET request.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/StandardCCs('OR:com.ptc.windchill.mpml.pmi.MPMStandardCC:202989')/StandardCCToResourceLinks('OR:com.ptc.windchill.mpml.pmi.MPMStandardCCToResourceLink:203015')/PTC.MfgProcMgmt.GetAssignedExpression
This example shows you how to retrieve assigned usage expression for an MPMOperationUsageLink. Use the following GET request.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/OperationHolders('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:202313')/OperationUsageLinks('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperationUsageLink:203154')/PTC.MfgProcMgmt.GetAssignedExpression
This example shows you how to retrieve assigned usage expression for an MPMSequenceUsageLink. Use the following GET request.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/SequenceHolders('OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:202243')/SequenceUsageLink('OR:com.ptc.windchill.mpml.processplan.sequence.MPMSequenceUsageLink:206265')/PTC.MfgProcMgmt.GetAssignedExpression