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]
Howdy, Stranger!
Categories
- 4.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 490 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions