Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
Hi
We want to update secondary attachments using REST, we have EPM document number, how should we do it?
And how should we fetch the wt doc data from epm?
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
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?
Hi @swapnali
The point is that restApi DocMgmt works with WTDocument type not with EPMDocument type.
You can try to find EPMDocument restApi CADDocumentMgmt
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