Skip to main content
10-Marble
March 8, 2023
Question

odata function to get distribution target publishing and transaction status

  • March 8, 2023
  • 1 reply
  • 2487 views

Hi all,

I have te requirement to get the status (no/sucess/failure) of a specific distribution target by calling a odata service.

 

JD_8606834_0-1678278640649.png

There can be more then one.

 

Does anyone know, how to get the highlighted values above by using odata?

 

Thanks,

Jürgen

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
March 8, 2023

Hi @JD_8606834 

The help center can be useful. use a RestAPI

 

GET Windchill/servlet/odata/ESI/DistributionTargets

 

DistributionTargetsAssoWithContext

 

Hope this can help

PetrH

PetrH
10-Marble
March 8, 2023

Hi PetrH,

thanks for your reply.

 

if I understand it correctly, the functions that you are mentioning are kind of general functions, not in the context of a part.

I need a service, to which I can pass a part id/number and it will return the status of the transaction for exactly that particular part.

 

All the part related odata services that I tried do return a lot of attributes but not the status of the transactions related to every assigned distribution target.

 

Thanks,

Jürgen

HelesicPetr
22-Sapphire II
22-Sapphire II
March 9, 2023

Hi @JD_8606834 

If you have gone through others sections in the help you would find this>

example_esi_retrieve_DistributionTargetsAssoWithWCObjects

 

Hope this can help.

 

PetrH

PetrH