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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

How to fetch wt.doc from wt.epm ?

swapnali
9-Granite

How to fetch wt.doc from wt.epm ?

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?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3 REPLIES 3
HelesicPetr
22-Sapphire I
(To:swapnali)

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?

HelesicPetr
22-Sapphire I
(To:swapnali)

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

Top Tags