Download a File, Folder or Attributes from Box.com Using the BoxConnector

Liz Sanderson
Liz Sanderson
  • Updated

FME Version

  • FME 2019.x

Introduction

Using the power of FME in conjunction with existing web services, you can easily incorporate their functionality into your own workflows. This article will cover how to download a file, folder, or attributes from Box.com using the BoxConnector transformer.

 

Requirements

A free Box.com account

 

Step-By-Step Instructions

1. Create New Workspace

Before you begin, please ensure you have Box.com account. Open FME Workbench and create a blank workspace.

 

2. Add a Creator and a BoxConnector Transformer

To upload the folder to box.com , we will be using the BoxConnector transformer. Add a Creator and a BoxConnector transformer to the canvas, then connect them. The Creator is required to initiate the workflow into the BoxConnector. Open the Creator parameters and delete the value for Creation Instance Attribute.

creatorboxconnnector.png

 

3. Set BoxConnector Action and Account Parameters

Open the BoxConnector transformer parameters, and set the Box Action to Download. Next, click the drop-down for Box Account and select the Training Box Connection created in Upload and Get Folder Information Using the BoxConnector.

createconnection.png

 

4. Finish Setting BoxConnector Parameters

Still in the BoxConnector, we now need to select a file to download. Click on the ellipsis next to Object ID and browse to the Parks folder that was uploaded in Upload and Get Folder Information Using the BoxConnector. In the Parks folder, select the PublicTrees.csv file and click OK.

 

Then for Destination, set the Download As to File, and choose a destination for Download to Folder.

completeboxparameters.png

 

If you want to download a folder, change the Download As to Folder and only select the folder level when selecting the Object ID.

 

If you want to download the attributes, change the Download As to Attributes and select either the file or folder you wish to get the attributes for when selecting the Object ID. Finally, create an attribute name for Download to Attribute.

 

5. Save and Run the Workspace

Now we can run the workspace, first save it and then click on the Run button. The file will be downloaded to the location set up in the first BoxConnector.

 

To confirm the file was downloaded, open the folder that you set as your Download to Folder. You should have a PublicTrees.csv file.

 

 

Data Attribution

The data used here originates from open data made available by the City of Vancouver, British Columbia. It contains information licensed under the Open Government License - Vancouver.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.