Download File From Url - Convert To FileData
Comments
-
[color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]Youll need to create a REST Service integration to return File Data from a URL. To create a REST Integration, youll want to go to Create Datatypes/Integration, go to External Services and select Add REST Service Integration. When the form appears, youll want to deselect Output Raw Value and set Service Return Data Type to Binary. For more details, see attached screenshot.[/font][/color]
[color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
[/font][/color]
[color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]Once your REST Integration has been generated, you will find this as a new step under Integration > REST Services in your Flow Designer. This step will return file data. For additional details, see related documentation links below:[/font][/color]
[ul][li]Using POST Method With REST Service Integration: https://documentation.decisions.com/using-post-method-rest-service-integration/
[/li][li]Integrating a REST Web Service That Returns JSON Data: https://documentation.decisions.com/integrating-rest-web-service-returns-json-data/[/li][/ul][img]att1[/img]
-
I followed this and everything works except that the content of the FileData object is null. Any thoughts on what the problem is?
-
Hi Christopher, the Contents value appearing as null in the debugger is a known graphical issue that our developers are working on. The Length value is accurate, however. If you were to pass that FileData object into a form to display it (if applicable), the file would still appear as expected.
[i]edited by james.hartzell@decisions.com on 5/1/2020[/i]
Howdy, Stranger!
Categories
- 4.5K All Categories
- 87 General
- 13 Training
- 213 Installation / Setup
- 1.2K Flows
- 112 Rules
- 277 Administration
- 215 Portal
- 503 General Q & A
- 722 Forms
- 356 Reports
- 3 Designer Extensions
- 47 Example Flows
- 58 CSS Examples
- 1 Diagram Tile
- 8 Javascript Controls
- 190 Pages
- 5 Process Mining
- New Features
- 187 Datastructures
- 72 Repository
- 238 Integrations
- 30 Multi-Tenant
- 27 SDK
- 81 Modules
- 60 Settings
- 26 Active Directory
- 12 Version 7
- 37 Version 8
- 143 Lunch And Learn Questions