Retrieving Effectivities for a Department Data Object
Example: Retrieving Effectivities for a Department Data Object
This example shows you how to retrieve effectivities for a department data object. Use the following URI with the GET method. It will show all the effectivities for the specific department data object.
URI
GET /Windchill/servlet/odata/BomTransformation/DepartmentDatas('<DepartmentDataId>')/Effectivities
This call can be expanded to show the effectivity context using the following URI with the GET method:
GET /Windchill/servlet/odata/BomTransformation/DepartmentDatas('<DepartmentDataId>')/Effectivities?$expand=EffectivityContext
The call can further be expanded to get more information about a specific type of effectivity — for example we can retrieve the date effectivities for a specific department data object using the following URI
GET /Windchill/servlet/odata/BomTransformation/DepartmentdDatas('<DepartmentDataId>')/Effectivities/PTC.EffectivityMgmt.DateEffectivity?$expand=EffectivityContext
You can also retrieve a specific effectivity of a department data object by specifying the OID of the effectivity as shown in the example below:
GET /Windchill/servlet/odata/BomTransformation/DepartmentDatas('<DepartmentDataId>')/Effectivities('<EffectivityId>')
Was this helpful?