Uploading File to HTTPS Connection

Uploading File to HTTPS Connection

Comments

  • Hi,

    In one of our flows, once we have created a file, we would like send the file over HTTPS (rest api call), I saw the documentation, i could only see the FTP and SFTP options but was not able to find a way to post a file via HTTPS.

    The use case is to create files from data and post it over HTTPS connections. The simplest example is as follows.
    1. Create a flow that will query our Database
    2. Write the database rows into a file
    3. Call an Rest API and upload the file to this location.

    How can I do this? The rest API integration does not allow me to send data like this?","10/9/2020 11:12:28 AM

  • Hi,

    You should be able to upload a file to HTTPS connection by installing cURL and using that via PowerShell in the workflow to send/upload the file. In order to do that you need to install Decisions Powershell module and also install cURL to the server if it is not already installed. If you check the below document you can find details of how to use Powershell scripts as steps in the flows. Powershell steps can give you the option to create dynamic scripts based on flow data. So, you can map any file data or path into the script.

    cURL is a great tool to transfer data using various network protocols. The below document also have sample examples. You can download and check these samples too.

    https://documentation.decisions.com/docs/powershell-module-basics

    https://medium.com/@petehouston/upload-files-with-curl-93064dcccc76

    Regards

  • Hi Kenan,

    in Decisions 7 powershell is no more available for local calls, and can not find any other option to send files over HTTPS connections like we did in Decisions 6 in the way you explain. What can be the way now to solve that?

    regards

    [quote=kenan@decisions.com]Hi,

    You should be able to upload a file to HTTPS connection by installing cURL and using that via PowerShell in the workflow to send/upload the file. In order to do that you need to install Decisions Powershell module and also install cURL to the server if it is not already installed. If you check the below document you can find details of how to use Powershell scripts as steps in the flows. Powershell steps can give you the option to create dynamic scripts based on flow data. So, you can map any file data or path into the script.

    cURL is a great tool to transfer data using various network protocols. The below document also have sample examples. You can download and check these samples too.

    https://documentation.decisions.com/docs/powershell-module-basics

    https://medium.com/@petehouston/upload-files-with-curl-93064dcccc76

    Regards[/quote]

Sign In or Register to comment.