Skip to main content
May 4, 2026
Question

Custom plugin 26.3, content service

  • May 4, 2026
  • 1 reply
  • 0 views

I am working on a custom plugin, I am curious as if there was a change in Appian version 26.3, I use content service to open a file and get the input stream, like I have down with versions 25 and older, I was curious if there was a change in how the content service works and how to properly open a file inside a custom smart service. 

Code I am using:

Document[] documents = contentService.download(docId, ContentConstants.VERSION_CURRENT, false);
        if (documents == null || documents.length == 0) {
            throw new RuntimeException(String.format("Document with id [%s] was not found.", docId));
        }
        Document document = documents[0];

        return document.getInputStream();

    1 reply

    shubhama926776
    May 4, 2026

    Your code is fine - contentService.download() + document.getInputStream() is still the correct pattern in 26.3.
    No breaking changes to that API.

    https://docs.appian.com/suite/help/26.3/api/com/appiancorp/suiteapi/knowledge/Document.html