Download File From Url - Convert To FileData

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]

Sign In or Register to comment.