cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Odata Service to Fetch the Latest UsageLink Id Between Two Parts

0 Kudos

Odata Service to Fetch the Latest UsageLink Id Between Two Parts

 

The need of this endpoint is must have when we are working on Thingworx side and we loose the latest references when the object is getting checked-out or checked-in from Winchill side.

 

Below is the use case :

 

I am getting the BOM info by hitting below endpoint :

 

servlet/odata/v4/ProdMgmt/Parts('ID')/PTC.ProdMgmt.GetBOM with expand as - Components($levels=max;$expand=Part,PartUse)

So I’ll get the part info as well as PartUsageLink Info and I am storing this info.

 

When  I checkout any particular part from above BOM its related PartUsageLinkID is getting changed.

So I need a way to get the latest PartUsageLinkID by providing PartId and its chiildpart Id without hitting getBOM again.