Downloading file via URL

Downloading file via URL

Comments

  • I have a URL that downloads a file when the URL is hit. I want to be able to download the file to the decisions server once a day on a regular schedule. (I know how to do the schedule bit)

    If it’s easier to read the contents of the file and then save that then I’m happy with that approach too. As long as I end up with a file on the server file system.

    I can do a GET in Postman and that gets the file using ‘Send and Download’ but I don’t know how to replicate that in a Decisions ‘Get’ http step or a REST Service step, if that’s even the right way of going about this. Any help would be appreciated.

  • I was able to get this working via REST Integrations. Heres some documentation on how to create REST integrations: https://documentation.decisions.com/docs/rest-service-integration-overview

    Since we know it works fine in Postman, we know itll likely work in Decisions. Setup a GET Method call for you integration. To ensure we return a file as the output, when creating your Method set the output type to [b]Binary [/b]and set a filename[b]. [/b]

    Once the integration has been created, please find the added integration in the step catalog under Integration> REST Services>[Service Name]>[Method Name].
    [i]edited by cameron@decisions.com on 9/11/2020[/i]

Sign In or Register to comment.