Skip to main content
10-Marble
February 4, 2025
Question

Downloading and uploading primary, secondary content for attachments through Windchill REST API

  • February 4, 2025
  • 1 reply
  • 680 views

I would like to download primary contents and attatchemtns for WTDocument and place it some pre defined folder on server , on releasing document.

 

I would like to know what is the API to use to download attachments and primary content of document. Also if it is possible to build a JS hook to perform this action.

 

 

 

Thanks in Advance.

1 reply

avillanueva
23-Emerald I
23-Emerald I
February 4, 2025

Look at the ContentHelper service. Yes, roll your own code but this is not too hard. This can be done in a workflow since you are releasing it.

10-Marble
February 5, 2025

Hi thank you for your time and response. I am quite new to Windchill so can you please elaborate it how i can customize a JS hook for this. I already did some customization for WTPart "described by" as I found clear instructions and script on this community platform. I would be thankful if I know where to learn about this customization.