Skip to main content
June 22, 2023
Question

Fetch attachments from server

  • June 22, 2023
  • 9 replies
  • 0 views

Hi Team,

I have few files which get downloaded in my Appian server. I have a requirement where I need to pull these files from server and make these files available to the user. Can someone suggest how to achieve this?

Also if I want to send these files from server as an attachment in my 'Send Email' smart service, will I be able to do that? If yes, please tell me the process.

Any suggestion would help.

Thank you

    9 replies

    June 22, 2023

    You can get these documents if you know the document Id of the generated documents and you can use a!documentDownloadLink() component or a!documentViewerField() to make it available to the user for viewning or downloading purpose, please add more details so that we can answer more specifically.

    For sending these files, you'll see "Add attachments" option when you configure Send Email smart service.

    June 23, 2023

    Hi Sanchit,


    I have files in server, how can I fetch those files from server to my appian UI page?

    June 23, 2023

    I already answered this.

    csteward
    June 23, 2023

    Are you on premise, and these files are located on your server but outside of Appian (e.g. not Appian document objects)?  If so, you can use a plugin such as Appian Collab / Filesystem Utilities.  Note this is not a cloud-approved plugin.

    mathieud0001
    Brainy
    June 24, 2023

    What kind of files do you need access to on the server that you can't put in Appian?

    June 26, 2023

    Hi Mathieu,
    We are running a python script to get the files and these files get saved in our server. Our requirement is to get these files in our local appian application so that users can download these to their local systems.

    mathieud0001
    Brainy
    June 26, 2023

    Why not call an Appian API Endpoint from your Python script to add the files to Appian?