Skip to main content

3 replies

Jun 20, 2023 2:37 PM UTC

Hello @swapnali 

You would like to modify attachments but you mentioned wt.document and wtdocument is normally linked to a WTPart. as described or referenced document.

 

PetrH

swapnaliAuthor
Jun 22, 2023 5:33 AM UTC

Hello @HelesicPetr 

 

According to this link, Uploading Content for a Document (ptc.com),

 

they have mentioned that during stage 1 POST url call, we need to provide wt document number, (POST /Windchill/servlet/odata/DocMgmt/Documents('OR:wt.doc.WTDocument:48796581')/PTC.DocMgmt.uploadStage1Action), but we have EPM document number, so how should we extract the WTDocument Number from EPM document number?

Jun 22, 2023 6:57 AM UTC

Hi @swapnali 

The point is that restApi DocMgmt works with WTDocument type not with EPMDocument type. 

 

You can try to find EPMDocument restApi CADDocumentMgmt 

HelesicPetr_0-1687416857778.png

and use OID from EPM in DocMgmt upload stage, but I don't believe that it would work. 

example EPMOID > OR:wt.epm.EPMDocument:7187581

 

PetrH