Skip to main content
swapnar6405
October 3, 2022
Solved

Best way to provide a link to download a document

  • October 3, 2022
  • 4 replies
  • 1 view

Hi,

I have a requirement to provide just a link to download a standard file (File uploaded to a folder which is there under KnowledgeCenter)

What is the best way to do this.

When I review the Appian document I found this.   a!documentDownloadLinklabel, document, showWhen )

Now, to the document parameter, how can I provide a path of the document?

Best answer by mikes0011
what is I move the document to the higher environments like UAT and PROD

If you have a document that'll be deployed to different environments, you will want to create a Constant to refer to it.  The Doc ID will change between environments, but the constant refers to it by UUID which will remain consistent.

4 replies

harshitb6843
October 3, 2022

Document ID in integer or a constant which points to that document. 

swapnar6405
October 3, 2022

Hi,

The document which I have uploaded is having a document ID.

But, what is I move the document to the higher environments like UAT and PROD. Will the document ID remain same or will it vary.

mikes0011
mikes0011Answer
Brainy
October 3, 2022
what is I move the document to the higher environments like UAT and PROD

If you have a document that'll be deployed to different environments, you will want to create a Constant to refer to it.  The Doc ID will change between environments, but the constant refers to it by UUID which will remain consistent.

The Expression Guru
mikes0011
Brainy
October 3, 2022

Harshit's answer is correct - the only relevant thing in play here is the appian Document ID.  Paths in the Appian filesystem are purely notional and not at all relevant to downloading, other than for maintaining folder-based security for document access (i.e. a user would have to have at least "viewer" access to the folder a document is stored in, to be able to actually download it).

The Expression Guru