Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
If I know the id of an attachment, what is the correct URL I can use to programmatically download the attachment from another machine?
Example: I have a document: wt.doc.WTDocument:167663137 and the primary content is OR:wt.content.ApplicationData:167724372
How do I download the data?
gives me a page of javascript that will redirect a java-script capable browser to the content at
I need to URL to the content (no javascript available). Is there a simpler URL that will give me that?
Found my own answer. The ListContent Webject returns a "urlLocation" property, which is what I need.
Also, one of the example TaskDelegates has te code for determining download URL (I'm guessing it's similar to the code that ListContent uses).
tasks/com/ptc/windchill/ws/GetDownloadHandles.xml has the magic bits.
use below pseudo code may get the URL: