Skip to main content
12-Amethyst
January 22, 2026
Question

How to get WTPart from ESITarget

  • January 22, 2026
  • 5 replies
  • 239 views

WTPart - > Related Objects -> Distribution Table,
if I right click on any row, the object type or the id is com.ptc.windchill.esi.tgt.ESITarget%3A299573938

11025060_0-1769109086646.png

I need to add custom logic to the 'Remove' button, depending on if the part is on any CA or not. 
So, from com.ptc.windchill.esi.tgt.ESITarget%3A299573938
 is there a way to find out which WTPart it is related to?
indirectly, I am looking for a query/api to get WTPart from ESITarget

 

5 replies

Marco Tosin
21-Topaz I
21-Topaz I
January 23, 2026
16-Pearl
January 23, 2026

Hi @11025060,

What exactly is your requirement?

I don’t think that’s the right approach, there would be many objects associated with that DT.

Fadel
23-Emerald I
January 23, 2026

The link between DT and parts is com.ptc.windchill.esi.tgt.ESITargetAssignmentLink 

Issue is that many parts may referring to the same DT, some  customer use one DT hence the one DT may reference all parts 

we can define an alias attribute on DT type with mapping target@com.ptc.windchill.esi.tgt.ESITargetAssignmentLink~releasableObject^wt.part.WTPart

Fadel_1-1769156921497.png

 

but it will show all parts 

Fadel_0-1769156835236.png

 

Buiꓘa
13-Aquamarine
January 23, 2026

com.ptc.windchill.esi.tgt.ESITargetUtility.getTargetAssociations(Persistable object)

Imad_A_0-1769157524596.png

 

Community Manager
February 5, 2026

Hello @11025060

 

It looks like you have some responses from some community experts. If any of these replies helped you solve your question please mark the appropriate reply as the Accepted Solution. 
Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Thanks,
Vivek N.
Community Moderation Team.