I want to know if there is any script/function where I can retrieve a csv file present in FTP from a cloud page.

Firstly the file is already present in FTP location, so some users don't have access to FTP.

Is there any function that I can use in cloud page to retrieve the csv file present in FTP, when we click the cloud page URL it should be downloaded the csv file.

I don't want to use the AttachFile option.

Thanks in advance

1 Answer 1


This is not possible, unfortunately. SSJS and Ampscript are quite limited when it comes to utilising e.g. FTP protocol, and the Enhanced FTP folder is not able to expose its files over HTTP(S) (which would be required, if you were to download it via a Cloud Page).

  • thanks @Lukas, so the final conclusion is there is no way we can access file from cloud page, I came across this salesforce.stackexchange.com/questions/292272/… but am it did not mention the points in details, can api be one of the approach?
    – Joey
    Sep 8, 2020 at 5:51
  • @Joey the thread you are referring to does not mention any API, only the ability to use e.g. Python package to allow it to access the file via the FTP protocol. Something neither SSJS nor Ampscript are capable of. Sep 8, 2020 at 5:57
  • thanks @Lukas for your response
    – Joey
    Sep 8, 2020 at 6:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .