Retrieving Information of a Specific Sequence
This example shows you how to retrieve information of a specific Sequence. It shows you how to retrieve effectivities, security labels, and associated option set of a Sequence.
Example: Retrieving All Effectivities of a Specific Sequence
This example shows you how to retrieve information about all effectivities of a specific Sequence. For example, if you have set Date and Serial effectivities for a Sequence, the request returns information about both the effectivities. Use the following GET URI.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/Sequences('VR:com.ptc.windchill.mpml.processplan.sequence.MPMSequence:182608')/Effectivities
Similarly, you can retrieve information about all effectivities of a specific subtype of a Sequence object.
Example: Retrieving a Specific Effectivity of a Specific Sequence
This example shows you how to retrieve information about a specific effectivity of a specific Sequence. Use the following GET URI.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/Sequences('VR:com.ptc.windchill.mpml.processplan.sequence.MPMSequence:182608')/Effectivities('OR:wt.effectivity.WTDatedEffectivity:184150')
Example: Retrieving All Security Labels of a Specific Sequence
This example shows you how to retrieve information about all security labels of specific Sequence. Use the following GET URI.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/Sequences('VR:com.ptc.windchill.mpml.processplan.sequence.MPMSequence:182608')
Similarly, you can retrieve information about all security labels of a specific subtype of a Sequence object.
Example: Retrieving the Assigned Option Set of a Specific Sequence
This example shows you how to retrieve information about the option set assigned to a specific Sequence. Use the following GET URI.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/Sequences('VR:com.ptc.windchill.mpml.processplan.sequence.MPMSequence:182608')/AssignedOptionSet
URI with Expand
GET /Windchill/servlet/odata/MfgProcMgmt/Sequences('VR:com.ptc.windchill.mpml.processplan.sequence.MPMSequence:182608')?$expand=AssignedOptionSet
Similarly, you can retrieve information about the option set assigned to a specific subtype of a Sequence object.
Example: Retrieving Changes Associated with a Specific Sequence
This example shows you how to retrieve changes associated with a specific Sequence. Use the following GET URI.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/Sequences('OR:com.ptc.windchill.mpml.processplan.sequence.MPMSequence:239817')
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.sequence.MPMSequence:239818')"
When you click the canonical link, you can retrieve information of the Change object.
Similarly, you can retrieve changes associated with a subtype of a Sequence object by specifying the subtype OID in the request URI.