Skip to main content
12-Amethyst
Jan 22, 2026 7:14 PM UTC
Question

How to get WTPart from ESITarget

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

MarcoTosin
21-Topaz II
Jan 23, 2026 7:17 AM UTC
18-Opal
Jan 23, 2026 8:15 AM UTC

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.

Translate
Fadel
23-Emerald II
Jan 23, 2026 8:27 AM UTC

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

 

Translate
Buiꓘa
13-Aquamarine
Jan 23, 2026 8:39 AM UTC

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

Imad_A_0-1769157524596.png

 

Translate
Emeritus
Feb 5, 2026 4:03 AM UTC

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.

Translate