Skip to content

Dropbox ​

Uploads an email’s attachments to a Dropbox folder, fetches a file into the run, lists a folder, creates a folder, shares a link.

The Dropbox node files an email’s attachments into a folder, fetches a file into the run to send it, lists or creates a folder and shares a link, through a Dropbox connection. A file with the same name is never overwritten: Dropbox renames it.

At a glance ​

  • Type: dropbox.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: Dropbox
  • Inputs: main
  • Outputs: main
The ports of “Dropbox”: 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 Dropbox connection.Dropboxdropbox.apimainmainerror · only with “Follow the Error output”Connection: Dropbox
The ports of “Dropbox”: what comes in on the left, what goes out on the right

Connection ​

This node needs a Dropbox connection.

Parameters ​

connection ​

Dropbox connection — The Dropbox 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
    • share — Create a shared link

folder ​

Folder — Picked from the list, or a typed path (/Clients/Dupont). Empty: the root.

  • Type: Remote resource (resourceLocator)
  • Required: No
  • Ways to choose: pick from a list, type an ID (dropbox.folder)
  • Listed with the connection in: connection
  • Shown when: action is one of upload, list

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

path ​

Path — The full path in Dropbox, starting with / (/Clients/Dupont/mandate.pdf). Accepts {{ }} expressions.

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 1000 characters at most
  • Example: /Clients/{{ email.from.name }}
  • Shown when: action is one of download, createFolder, share
  • Expressions: {{ }} accepted

limit ​

Maximum count

  • Type: Number (number)
  • Required: No
  • Default: 100
  • Whole number, from 1 to 2000
  • Shown when: action is list

Outputs ​

  • main — Taken once the Dropbox call has succeeded. An error answer from Dropbox 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: the files (name, path, size, modifiedAt).
  • {{ data.<step>.attachmentPosition }} — number. Fetch a file: the position of the file added to the run, to attach with “Compose an email”.
  • {{ 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.