<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Knowlede Document getInternalFilename()</title><link>https://community.appian.com/discussions/f/plug-ins/36878/knowlede-document-getinternalfilename</link><description>I am updating a custom plugin that utilizes the Knowledge Document Type and uses the getInternalFilename() to get the absolute path of the document. That function has been deprecated, what is the preferred replacement, as I still need the absolute path</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Knowlede Document getInternalFilename()</title><link>https://community.appian.com/thread/140373?ContentTypeID=1</link><pubDate>Sun, 08 Sep 2024 21:15:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d719ab1b-0fd3-4321-b9f1-131569575e96</guid><dc:creator>Kumar Agniwesh</dc:creator><description>&lt;p&gt;Did you try documet(documentID,&amp;rdquo;URL&amp;rdquo;) ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Knowlede Document getInternalFilename()</title><link>https://community.appian.com/thread/140369?ContentTypeID=1</link><pubDate>Sun, 08 Sep 2024 14:38:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1f9b1cff-c6aa-41bc-abbf-56339bca6c8c</guid><dc:creator>jithesh</dc:creator><description>&lt;p&gt;Preferred way is to use the file&amp;nbsp;stream&amp;nbsp;APIs instead of the&amp;nbsp;deprecated ones.&amp;nbsp;Have listed a few use cases&amp;nbsp;for working with documents.&lt;/p&gt;
&lt;p&gt;For reading, use getInputStream of Document object returned by ContentService.download() api by passing the document id.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For&amp;nbsp;updating an existing document, similarly use getOutputStream and write to the DocumentOutputStream returned.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For creating a new document,&amp;nbsp;&lt;/span&gt;&lt;span&gt;create a new Document object, call contentService.uploadDocument which returns a ContentUploadOutputStream. Then write data to this output stream. Note that&amp;nbsp;the getContentId&amp;nbsp;method returns the newly created document id.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Knowlede Document getInternalFilename()</title><link>https://community.appian.com/thread/138949?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 06:00:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2112f321-823d-401e-be22-1e2eb03b6ceb</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Find some alternatives here:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/24.2/api/com/appiancorp/suiteapi/knowledge/Document.html#getInternalFilename()"&gt;https://docs.appian.com/suite/help/24.2/api/com/appiancorp/suiteapi/knowledge/Document.html#getInternalFilename()&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can also check other plugins from the app market for the included source code.&lt;/p&gt;
&lt;p&gt;A word of caution here. My experience with developing plugins is quite limited.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>