BLOCKS Reference

Box

Upload to Box from variable

Overview

This BLOCK is currently in beta and will become unavailable post official release. Please use the official version once it is released.

As a beta release, there is the possibility that some functions may not execute properly. We appreciate feedback from users regarding bugs or ways to improve BLOCKS.

This BLOCK uploads data stored in a variable to Box.

You can configure the format of the uploaded file by using the File format property.

File format Explanation
None

Uploads the contents of the variable to Box as they are.

YAML

The variable should contain an object or an array of objects. The BLOCK converts that data into YAML format text data and uploads it to Box.

JSON

The variable should contain an object or an array of objects. The BLOCK converts that data into JSON format text data and uploads it to Box.

CSV

The variable should contain an object or an array of objects. The BLOCK converts that data into CSV format text data and uploads it to Box.

Binary (Base64)

The variable should contain Base64 data. The BLOCK decodes that data and uploads it to Box.

Properties

Explanation
BLOCK name Configure the name displayed on this BLOCK
Box service account

Select the Box service account to use with this BLOCK.

You must register a Box service account within the Box service accounts section of the Flow Designer Settings menu beforehand.

User ID

Designate the User ID of the Box service account.

If the Application Access of your Box service account (Box app) is set to Application, do not enter anything into this property.

To view your Box service account’s User ID, access the Box Developer Console , select your Box app, and find it within the General information’s App Info section.

Box Dev Console User ID

*Click the image to enlarge

Destination file path

Designate the path for the file to be uploaded to Box. The formatting is as follows:

  • /FILE
  • /FOLDER/FILE

The initial / points to the “All Files” page. The / between the folder and file names is to distinguish them.

/FILE: Use this format to upload the data directly into the “All Files” page in Box. For example, to upload the data from the variable as a file named sample.png into the “All Files” page, you would enter /sample.png into this property.

/FOLDER/FILE: Use this format to designate a folder to upload the file into. For example, if you want to upload the data as a file named sample.png into a folder named BLOCKS that is shown in the “All Files” page, you would enter /BLOCKS/sample.png into this property.

To upload into a nested folder, if folder A contains folder B, you would enter /A/B/sample.png to upload the file sample.png into folder B.

Input variable Designate the variable that contains the data that will be uploaded to Box.
File format

Select the format of the file that will be uploaded to Box from the following: None, YAML, JSON, CSV, or Binary (Base64).

BLOCK memos Make notes about this BLOCK.