Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

Re: Unable to find a attachment using ContentHelper

$
0
0

you can use below API to get the attachment of WTDocument.

 

 

 

          WTDocument document=null;

 

                    QueryResult attachments = ContentHelper.service.getContentsByRole(document, ContentRoleType.SECONDARY);

 

                    while (attachments.hasMoreElements()) {

 

 

                              ApplicationData appData = (ApplicationData) attachments.nextElement();

                    //          String url = ContentHelper.getDownloadURL(document, appData).toString();

 

                    }

 

 

Hope this helps !!

 

 

Thanks,

Shreyas


Viewing all articles
Browse latest Browse all 8876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>