Download file from URL to Safehousehow to download filter results from landing page in pdf/ any other format?AMPScript variables from fileAttach file from external (S)FTP using AMPScriptHow do I download a file from chatter in visualforce page?Download files from Content Builder UIDownload file(Image/Doc/PDF) in Lightning componentAttach File Function AmpscriptPossible to request and store entire urlPassing SubscriberKey from CloudPage to JavaScript fileAmpScript to creating a Dynamic URL for download files

Can't split a feature as invalid geometry - but "Check Validity" says its valid

How does Rust's 128-bit integer `i128` work on a 64-bit system?

Partial Fractions: Why does this shortcut method work?

Does proof-of-work contribute directly to prevent double-spending?

Is it uncompelling to continue the story with lower stakes?

A verb for when some rights are not violated?

Why are sugars in whole fruits not digested the same way sugars in juice are?

Want to manipulate and visualize differential equation of a falling object

Subverting the essence of fictional and/or religious entities; is it acceptable?

Can genetic genealogy identify father of male first cousins with same first name?

Why do my fried eggs start browning very fast?

How to avoid a lengthy conversation with someone from the neighborhood I don't share interests with

Is it moral to remove/hide certain parts of a photo, as a photographer?

What is a summary of basic Jewish metaphysics or theology?

Is an "are" omitted in this sentence

Does a bard know when a character uses their Bardic Inspiration?

Unlocked Package Dependencies

Skipping same old introductions

Can't understand an ACT practice problem: Triangle appears to be isosceles, why isn't the answer 7.3~ here?

Deflecting lasers with lightsabers

Basic CPA walkthrough

In a KP-K endgame, if the enemy king is in front of the pawn, is it always a draw?

Why have both: BJT and FET transistors on IC output?

Proof of First Difference Property for Fourier Series



Download file from URL to Safehouse


how to download filter results from landing page in pdf/ any other format?AMPScript variables from fileAttach file from external (S)FTP using AMPScriptHow do I download a file from chatter in visualforce page?Download files from Content Builder UIDownload file(Image/Doc/PDF) in Lightning componentAttach File Function AmpscriptPossible to request and store entire urlPassing SubscriberKey from CloudPage to JavaScript fileAmpScript to creating a Dynamic URL for download files






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















is there a way in ampscript or javascript to download a file from a WEB-Url and store it to the safehouse ?!?










share|improve this question






























    2















    is there a way in ampscript or javascript to download a file from a WEB-Url and store it to the safehouse ?!?










    share|improve this question


























      2












      2








      2








      is there a way in ampscript or javascript to download a file from a WEB-Url and store it to the safehouse ?!?










      share|improve this question














      is there a way in ampscript or javascript to download a file from a WEB-Url and store it to the safehouse ?!?







      marketing-cloud javascript ampscript






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 24 at 11:35









      StephanStephan

      211 bronze badge




      211 bronze badge























          1 Answer
          1






          active

          oldest

          votes


















          9














          There is not currently a way to do this action directly. You would do the following:



          1. Automate a process that places a file on your FTP (Ideally this would be encrypted)

          2. Create a file transfer activity that is a download type

          3. Download the file to the safehouse

          During this process the key point would be encrypting it so that you could could achieve the same goal that you were looking to do with other direct scripting methods.



          Here is documentation that speaks to Key Management:



          https://help.salesforce.com/articleView?id=mc_overview_key_management.htm&type=5



          This speaks to how using a file transfer activity would look:



          https://help.salesforce.com/articleView?id=mc_overview_use_a_created_key_with_file_transfer_activities.htm&type=5






          share|improve this answer

























          • Hello, thanks for the reponse. But my problem is, that the download of the file will be triggered by an user interaction on a Cloud-Page. So the http call will be generated within the Cloudpage and also the download have to be placed in the code if possible ?!?

            – Stephan
            Jul 24 at 12:51













          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "459"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f270795%2fdownload-file-from-url-to-safehouse%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          9














          There is not currently a way to do this action directly. You would do the following:



          1. Automate a process that places a file on your FTP (Ideally this would be encrypted)

          2. Create a file transfer activity that is a download type

          3. Download the file to the safehouse

          During this process the key point would be encrypting it so that you could could achieve the same goal that you were looking to do with other direct scripting methods.



          Here is documentation that speaks to Key Management:



          https://help.salesforce.com/articleView?id=mc_overview_key_management.htm&type=5



          This speaks to how using a file transfer activity would look:



          https://help.salesforce.com/articleView?id=mc_overview_use_a_created_key_with_file_transfer_activities.htm&type=5






          share|improve this answer

























          • Hello, thanks for the reponse. But my problem is, that the download of the file will be triggered by an user interaction on a Cloud-Page. So the http call will be generated within the Cloudpage and also the download have to be placed in the code if possible ?!?

            – Stephan
            Jul 24 at 12:51















          9














          There is not currently a way to do this action directly. You would do the following:



          1. Automate a process that places a file on your FTP (Ideally this would be encrypted)

          2. Create a file transfer activity that is a download type

          3. Download the file to the safehouse

          During this process the key point would be encrypting it so that you could could achieve the same goal that you were looking to do with other direct scripting methods.



          Here is documentation that speaks to Key Management:



          https://help.salesforce.com/articleView?id=mc_overview_key_management.htm&type=5



          This speaks to how using a file transfer activity would look:



          https://help.salesforce.com/articleView?id=mc_overview_use_a_created_key_with_file_transfer_activities.htm&type=5






          share|improve this answer

























          • Hello, thanks for the reponse. But my problem is, that the download of the file will be triggered by an user interaction on a Cloud-Page. So the http call will be generated within the Cloudpage and also the download have to be placed in the code if possible ?!?

            – Stephan
            Jul 24 at 12:51













          9












          9








          9







          There is not currently a way to do this action directly. You would do the following:



          1. Automate a process that places a file on your FTP (Ideally this would be encrypted)

          2. Create a file transfer activity that is a download type

          3. Download the file to the safehouse

          During this process the key point would be encrypting it so that you could could achieve the same goal that you were looking to do with other direct scripting methods.



          Here is documentation that speaks to Key Management:



          https://help.salesforce.com/articleView?id=mc_overview_key_management.htm&type=5



          This speaks to how using a file transfer activity would look:



          https://help.salesforce.com/articleView?id=mc_overview_use_a_created_key_with_file_transfer_activities.htm&type=5






          share|improve this answer













          There is not currently a way to do this action directly. You would do the following:



          1. Automate a process that places a file on your FTP (Ideally this would be encrypted)

          2. Create a file transfer activity that is a download type

          3. Download the file to the safehouse

          During this process the key point would be encrypting it so that you could could achieve the same goal that you were looking to do with other direct scripting methods.



          Here is documentation that speaks to Key Management:



          https://help.salesforce.com/articleView?id=mc_overview_key_management.htm&type=5



          This speaks to how using a file transfer activity would look:



          https://help.salesforce.com/articleView?id=mc_overview_use_a_created_key_with_file_transfer_activities.htm&type=5







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 24 at 12:23









          Lindsey LanwehrLindsey Lanwehr

          1462 bronze badges




          1462 bronze badges















          • Hello, thanks for the reponse. But my problem is, that the download of the file will be triggered by an user interaction on a Cloud-Page. So the http call will be generated within the Cloudpage and also the download have to be placed in the code if possible ?!?

            – Stephan
            Jul 24 at 12:51

















          • Hello, thanks for the reponse. But my problem is, that the download of the file will be triggered by an user interaction on a Cloud-Page. So the http call will be generated within the Cloudpage and also the download have to be placed in the code if possible ?!?

            – Stephan
            Jul 24 at 12:51
















          Hello, thanks for the reponse. But my problem is, that the download of the file will be triggered by an user interaction on a Cloud-Page. So the http call will be generated within the Cloudpage and also the download have to be placed in the code if possible ?!?

          – Stephan
          Jul 24 at 12:51





          Hello, thanks for the reponse. But my problem is, that the download of the file will be triggered by an user interaction on a Cloud-Page. So the http call will be generated within the Cloudpage and also the download have to be placed in the code if possible ?!?

          – Stephan
          Jul 24 at 12:51

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Salesforce Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f270795%2fdownload-file-from-url-to-safehouse%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown