Downloading File from Google Drive and Uploading on Dropbox

  1. Add and configure Google Drive Download File action

    To set up this workflow, you will need to use two actions: Google Drive 'Download File' and Dropbox 'Upload File'.

    Look for Google Drive from the list under ‘Services’, and add its 'Download File' action to the canvas.

    This action downloads a file from Google Drive and saves it to the Built.io Flow engine’s local storage. To implement this, configure the action by clicking the 'settings' icon that appear when you hover on the action icon.

    When configuring the Google Drive Access Token field, select the appropriate access token for Google Drive. If you haven’t created an access token, select 'Add New' to create one.

    Enter value in the other fields as per the instructions given below:

    File ID: Enter the ID of the file that you wish to download. Clicking the 'Refresh' icon will fetch the list of all the files of your Google Drive account depending on the access token selected, and display it in the drop‐down list. 

    Alternatively, you can enter the ID manually.

    File Name: Enter the name (along with the extension; for example, File.txt) you wish to save this file as. The downloaded file will be saved in Built.io Flow’s local storage. 

    Below is the image for configuring Google Drive 'Download File' action.

    1.png

    Once you enter these details, click on 'NEXT', test the action, and click the 'DONE' button to return to your workflow canvas.

  2. Add and configure Dropbox Upload File action

    Next, add Dropbox 'Upload File' action to the canvas. 

    This action is used to upload the downloaded file from Google Drive to your Dropbox account. To implement this, configure the action by clicking the 'settings' icon that appear when you hover on the action icon.

    Select the appropriate authorization for Dropbox. If you haven't created an authorization, select 'Add New' to create one.

    There are several other fields in this action. Enter value in these fields as per the instructions given below:

    Source File Path: Enter the file path of the Google Drive 'Download File' action which will be taken as the input to this field. For example, {{$a7.filepath}} will be the input for this field, which is the output of Google Drive 'Download File' action.

    Destination File Path: Enter the destination file path where you want to save your file. For example, /xyz.txt

    Auto Rename: Specify whether you want to auto rename the file if the file already exists. The default value of this field is 'False'.

    Write Mode: Select the mode to specify what to do if the file already exists. The default value of this field is 'Add'.

    Below is the image for configuring Dropbox 'Upload File' action.

    2.png

    Once you enter the required details, click 'NEXT', test the action, and click the 'DONE' button to return to your canvas.

  3. Save and test the workflow

    Now that all the actions have been configured, 'Save' your workflow. Click 'Test' to manually execute the workflow.

    As soon as the workflow starts its execution, you will see real‐time indicators showing the progress of the workflow. Once the execution is completed, the downloaded file will be uploaded to your Dropbox account.