Skip to main content
saurabhs0003
May 11, 2023
Question

Download the file

  • May 11, 2023
  • 7 replies
  • 0 views

Hi All,

I have a scenario where I am getting a URL of the attachment through an API , So I need to hit that URL , So that my file are downloaded . How can I achieve this with the help of Process model or is there any other way 

Thanks In advance 

7 replies

stefanhelzle0001
Brainy
May 11, 2023

You can easily download files using a normal integration object.

saurabhs0003
May 11, 2023

Hi Stefan , I just have the URL of the attachment like for example  

https://abc/mailing/download_file/?msg_id=1111111&user=abccc@

when I copy this link to browser , it automatically gets downloaded.

In your scenario I don't have the document name to pass 

stefanhelzle0001
Brainy
May 11, 2023

Just leave the field empty. Appian will try its best to get the name right.

The browser check the HTTP headers for the filename and names the file accordingly. You can do the same as a second step after the download.

The header to look for is described here.

stackoverflow.com/.../http-download-file-name