English
Box
Uploads an email’s attachments to a Box folder, fetches a file into the run, lists or creates a folder, searches for a file, shares a link.
The Box node files an email’s attachments into a folder, fetches a file into the run, lists or creates a folder, searches for a file and shares a link, through a Box connection.
At a glance
- Type:
box.api· version 1 - Category: Data
- Kind: Step — one stage of a run
- Effect: Writes outside (
external_write) — writes outside Loop & Roll; described instead of performed during a test run - Needs a carrier email: No
- Connection: Box
- Inputs:
main - Outputs:
main
Connection
This node needs a Box connection.
Parameters
connection
Box connection — The Box connection to use. Create it once in Connections; its key never appears in the workflow.
- Type: Connection (
credential) - Required: Yes
- Default:
""(empty)
action
Action
- Type: One choice (
options) - Required: Yes
- Default:
upload - Options:
upload— Upload the attachmentsdownload— Fetch a filelist— List a foldercreateFolder— Create a foldersearch— Search for a fileshare— Create a shared link
folder
Folder — Picked from the list, by its ID, or by its Box address. Empty: the root.
- Type: Remote resource (
resourceLocator) - Required: No
- Ways to choose: pick from a list, type an ID, paste a URL (
box.folder) - Listed with the connection in:
connection - Shown when:
actionis one ofupload,list,createFolder,search
selection
Attachments to use
- Type: One choice (
options) - Required: Yes
- Default:
all - Options:
all— All attachments: Those of the triggering email, then the files added by earlier steps (a fetched deed, a signed PDF), in that order.first— The first one only: The first attachment, when only one matters.byMime— By file type: By MIME type:application/pdf, or a whole family withimage/*.byName— By file name: By name pattern:*.pdf,invoice-*.
- Shown when:
actionisupload
mime
File type — Exact MIME type (application/pdf) or a whole family (image/*). Left empty, no attachment is kept.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 200 characters at most
- Example:
application/pdf - Shown when:
actionisuploadandselectionisbyMime - Expressions:
{{ }}accepted
namePattern
File name — Simple pattern: * matches anything, ? one character (*.pdf, invoice-*). Case is ignored.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 200 characters at most
- Example:
*.pdf - Shown when:
actionisuploadandselectionisbyName - Expressions:
{{ }}accepted
fileId
File — The Box ID of the file (a series of digits), often {{ data.box.id }}.
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 30 characters at most
- Shown when:
actionis one ofdownload,share - Expressions:
{{ }}accepted
name
Folder name
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 255 characters at most
- Example:
{{ email.from.name }} - Shown when:
actioniscreateFolder - Expressions:
{{ }}accepted
query
Search for
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 255 characters at most
- Shown when:
actionissearch - Expressions:
{{ }}accepted
access
Link access
- Type: One choice (
options) - Required: No
- Default:
company - Options:
open— Anyone with the linkcompany— People in the companycollaborators— Invited collaborators only
- Shown when:
actionisshare
limit
Maximum count
- Type: Number (
number) - Required: No
- Default:
100 - Whole number, from 1 to 1000
- Shown when:
actionis one oflist,search
Outputs
main— Taken once the Box call has succeeded. An error answer from Box fails the step instead.
Data produced
What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).
{{ data.<step>.files }}—array of object. Upload, list, search: the files (id,name,size,createdAt).{{ data.<step>.attachmentPosition }}—number. Fetch a file: the position of the file added to the run, to attach with “Compose an email”.{{ data.<step>.folderId }}—string. Create a folder: the ID of the created folder.{{ data.<step>.url }}—string. Create a shared link: the link.{{ data.<step>.simulated }}—boolean. true when the write was described instead of done (test run).{{ data.<step>.summary }}—string. The one-line summary in the member’s language.