Retrieving Information of a Specific Operation
This example shows you how to retrieve information of a specific Operation. It shows you how to retrieve effectivities, security labels, and associated option set of an Operation.
Example: Retrieving All Effectivities of a Specific Operation
This example shows you how to retrieve information about all effectivities assigned to a specific Operation. For example, if you have set Lot and Serial effectivities for an Operation, the request returns information about both the effectivities. Use the following GET URI.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/Operations('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:405460')/Effectivities
Similarly, you can retrieve information about all Effectivities of a specific subtype of an Operation object.
Example: Retrieving a Specific Effectivity of a Specific Operation
This example shows you how to retrieve information about a specific effectivity of a specific Operation. Use the following GET URI.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/Operations('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:405460')/Effectivities('OR:wt.part.ProductLotNumberEffectivity:405360')
Example: Retrieving All Security Labels of a Specific Operation
This example shows you how to retrieve information about all security labels assigned to a specific Operation. Use the following GET URI.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/Operations('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:405460')
Similarly, you can retrieve information about all security labels of a specific subtype of an Operation object.
Example: Retrieving the Assigned Option Set of a Specific Operation
This example shows you how to retrieve information about the option set assigned to a specific Operation. Use the following GET URI.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/Operations('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:206702')/AssignedOptionSet
URI with Expand
GET /Windchill/servlet/odata/MfgProcMgmt/Operations('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:206702')?$expand=AssignedOptionSet
Similarly, you can retrieve information about the option set of a specific subtype of an Operation object.
Example: Retrieving Changes Associated with a Specific Operation
This example shows you how to retrieve changes associated with a specific Operation. Use the following GET URI.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/Operations('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:535668')
In this example, the response also includes a canonical link, for example,
"href":"http://pwdcsv-wrs01d.ptcnet.ptc.com/Windchill/servlet/odata/v6/ChangeMgmt/Changeables('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:535669')"
When you click the canonical link, you can retrieve information of the Change object.
Similarly, you can retrieve changes associated with a subtype of an Operation object by specifying the subtype OID in the request URI.