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

We are happy to announce the new Windchill Customization board! Learn more.

How to programatically add a document to attachments section?

WM_9965332
11-Garnet

How to programatically add a document to attachments section?

Hi, 

I have written code which generates a report and downloads the file once an action has been clicked. I want to upload that document to the attachments section of change notice or change activity depending on where that action was triggered from. Is there an API to upload the generated report directly to this section?

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions


@WM_9965332 wrote:

Hi, 

I have written code which generates a report and downloads the file once an action has been clicked. I want to upload that document to the attachments section of change notice or change activity depending on where that action was triggered from. Is there an API to upload the generated report directly to this section?

 

Thanks.


Take a look at this article:

https://www.ptc.com/en/support/article/cs329385

How to create a Change Notice and add attachment to it using API in Windchill PDMLink

View solution in original post

3 REPLIES 3


@WM_9965332 wrote:

Hi, 

I have written code which generates a report and downloads the file once an action has been clicked. I want to upload that document to the attachments section of change notice or change activity depending on where that action was triggered from. Is there an API to upload the generated report directly to this section?

 

Thanks.


Take a look at this article:

https://www.ptc.com/en/support/article/cs329385

How to create a Change Notice and add attachment to it using API in Windchill PDMLink

Thanks for pointing me to this. How can I check if there is already a document in attachments section and override instead of adding to it again?


@WM_9965332 wrote:

Thanks for pointing me to this. How can I check if there is already a document in attachments section and override instead of adding to it again?


Take a look at this article:

https://www.ptc.com/en/support/article/cs237668

How to update Primary Content/Secondary Content of WTDocument with customization code in Windchill PDMLink

 

Top Tags