Deleting Product Effectivities for a Process Plan/Operation/Sequence
You can delete existing single or multiple product effectivities (Date, Lot, Unit, or Serial) for a Process Plan, Operation, Sequence, or its subtype.
Example: Deleting Product Date Effectivities for a Process Plan
This example shows you how to delete two product Date effectivities for a Process Plan object specified 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:200842')/PTC.MfgProcMgmt.RemoveEffectivities
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Effectivities": [
{
"ID": "OR:wt.effectivity.WTDatedEffectivity:203852"
},
{
"ID": "OR:wt.effectivity.WTDatedEffectivity:203849"
}
]
}
Similarly, you can delete other types of effectivities for a Process Plan object.
Example: Deleting Product Date Effectivities for an Operation
This example shows you how to delete two product Date effectivities for an Operation object specified 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:203874')/PTC.MfgProcMgmt.RemoveEffectivities
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Effectivities": [
{
"ID": "OR:wt.effectivity.WTDatedEffectivity:203852"
},
{
"ID": "OR:wt.effectivity.WTDatedEffectivity:203849"
}
]
}
Similarly, you can delete other types of effectivities for an Operation object.
Example: Deleting Product Date Effectivities for a Sequence
This example shows you how to delete two product Date effectivities for a Sequence object specified 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:203904')/PTC.MfgProcMgmt.RemoveEffectivities
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Effectivities": [
{
"ID": "OR:wt.effectivity.WTDatedEffectivity:203852"
},
{
"ID": "OR:wt.effectivity.WTDatedEffectivity:203849"
}
]
}
Similarly, you can delete other types of effectivities for a Sequence object.