URL to view a document stored in Appian

Certified Associate Developer

Hi all,

I want to view the document stored in application folder using url.  When I use the url like "/suite/doc/<docId>" it only downloads the document.  I want a url to view the document.  Any ideas?  Thanks in advance.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    What file extension is your document?  Appian has all the limitations of your browser.  So if Chrome won't display a .doc file inline, how can you expect Appian to MAKE Chrome do it?  If there's an extension you can install on Chrome that WILL make Chrome do it, then the Appian side of the equation should work too.

    And why are you using a URL?  Why aren't you using the Appian specific document ID?  If the use case is compelling enough, let's work through getting it to work properly, but if there's no real use case, then "Or just don't!"

  • 0
    Certified Associate Developer
    in reply to Dave Lewis

     David, I want to send the document urls to external system for the users to view.  So I am using the url like "/suite/doc/<docId>".  I am actually passing the document id to the url.  Can the document be viewed on the same page?

  • 0
    Certified Lead Developer
    in reply to Brinda
    I want to send the document urls to external system for the users to view.  So I am using the url like "/suite/doc/<docId>".

    If those external users are not users within their Appian system, I have no expectation that those URLs would work for them anyway.  As far as I know, links to internal documents require a viewer to authenticate into Appian 100%.

  • 0
    Certified Associate Developer
    in reply to Mike Schmitt

    They are basic users of Appian Mike. Can I use document viewer field in a form which will be displayed in a site, so that I can pass doc id to the form and send the respective urls to the external system through web api? The external users can be given viewer rights to the site and the document folder, so that when they click the link in the external system it will open the url of the site with the respective document and the users can view the document on the same page. Am I right? Will it work?

  • 0
    Certified Lead Developer
    in reply to Brinda

    Something like that might work - just note that the Document Viewer field only works with particular document formats (pdf and a few others).  Thus far there is no direct way to do in-form previews for things like word, excel, or HTML files, despite begging Appian to make it happen somehow.  A workaround that works in perhaps a narrow majority of cases is to create a temporary PDF version of a document just long enough to show it to a user via the document viewer field.

Reply
  • 0
    Certified Lead Developer
    in reply to Brinda

    Something like that might work - just note that the Document Viewer field only works with particular document formats (pdf and a few others).  Thus far there is no direct way to do in-form previews for things like word, excel, or HTML files, despite begging Appian to make it happen somehow.  A workaround that works in perhaps a narrow majority of cases is to create a temporary PDF version of a document just long enough to show it to a user via the document viewer field.

Children