Skip to content

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
The ports of “Box”: what comes in on the left, what goes out on the rightInput: main. Outputs: main. An error output appears when its failure setting is “Follow the Error output”. It needs a Box connection.Boxbox.apimainmainerror · only with “Follow the Error output”Connection: Box
The ports of “Box”: what comes in on the left, what goes out on the right

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 attachments
    • download — Fetch a file
    • list — List a folder
    • createFolder — Create a folder
    • search — Search for a file
    • share — 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: action is one of upload, 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 with image/*.
    • byName — By file name: By name pattern: *.pdf, invoice-*.
  • Shown when: action is upload

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: action is upload and selection is byMime
  • 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: action is upload and selection is byName
  • 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: action is one of download, share
  • Expressions: {{ }} accepted

name ​

Folder name

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 255 characters at most
  • Example: {{ email.from.name }}
  • Shown when: action is createFolder
  • Expressions: {{ }} accepted

query ​

Search for

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 255 characters at most
  • Shown when: action is search
  • Expressions: {{ }} accepted

access ​

Link access

  • Type: One choice (options)
  • Required: No
  • Default: company
  • Options:
    • open — Anyone with the link
    • company — People in the company
    • collaborators — Invited collaborators only
  • Shown when: action is share

limit ​

Maximum count

  • Type: Number (number)
  • Required: No
  • Default: 100
  • Whole number, from 1 to 1000
  • Shown when: action is one of list, 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.

Loop & Roll — the workflow builder for email.