Windchill REST Services Domain Capabilities > Examples for Basic REST Operations > Examples for the PTC Effectivity Management Domain > Retrieving Effectivities of Specific Objects in a Set of Effectivity-managed Objects
Retrieving Effectivities of Specific Objects in a Set of Effectivity-managed Objects
Example: Retrieving All Effectivities for Each Specific Effectivity-managed Manufacturing Resource Object in a Set of Objects
This example shows you how to retrieve all the effectivities of each specific effectivity-managed manufacturing resource object in set of objects. The example shows you how to retrieve all the effectivities for each Process Material, Tooling, Work Center and Skill object provided in the request. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/EffectivityMgmt/GetEffectivities?$expand=Effectivities
* 
You must apply $expand on Effectivities to retrieve information, otherwise an empty list is returned.
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"EffectivityManagables": [
{
"ID": "OR:com.ptc.windchill.mpml.resource.MPMSkill:585373"
},
{
"ID": "OR:com.ptc.windchill.mpml.resource.MPMTooling:585385"
},
{
"ID": "OR:com.ptc.windchill.mpml.resource.MPMProcessMaterial:585397"
},
{
"ID": "OR:com.ptc.windchill.mpml.resource.MPMWorkCenter:585409"
}
]
}
Example: Retrieving All Effectivities for Each Specific Effectivity-managed Plant Data and Department Data Object in a Set of Objects
This example shows you how to retrieve all the effectivities for each specific effectivity-managed Plant Data and Department Data object provided in a set of objects in the request. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/EffectivityMgmt/GetEffectivities?$expand=Effectivities
* 
You must apply $expand on Effectivities to retrieve information, otherwise an empty list is returned.
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"EffectivityManagables": [
{
"ID": "OR:com.ptc.windchill.enterprise.data.EnterpriseData:585687"
},
{
"ID": "OR:com.ptc.windchill.enterprise.data.EnterpriseData:586050"
},
{
"ID": "OR:com.ptc.windchill.enterprise.data.PlantFunctionalData:586061"
}
]
}
Example: Retrieving All Effectivities for Each Specific Effectivity-managed Part Object in a Set of Parts Objects
This example shows you how to retrieve all the effectivities for each specific effectivity-managed Part object provided in set of Parts objects in the request. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/EffectivityMgmt/GetEffectivities?$expand=Effectivities
* 
You must apply $expand on Effectivities to retrieve information, otherwise an empty list is returned.
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"EffectivityManagables": [
{
"ID": "OR:wt.part.WTPart:585270"
},
{
"ID": "OR:wt.part.WTPart:585254"
},
{
"ID": "OR:wt.part.WTPart:585242"
}
]
}
URI for Retrieving Effectivity Context of a Single Effectivity-managed Part Object
POST /Windchill/servlet/odata/EffectivityMgmt/GetEffectivities?$expand=Effectivities($expand=EffectivityContext)
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"EffectivityManagables": [
{
"ID": "OR:wt.part.WTPart:585270"
}
]
}