English
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
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 attachmentsdownload— Fetch a filelist— List a foldercreateFolder— Create a foldershare— 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:
actionis one ofupload,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 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
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:
actionis one ofdownload,createFolder,share - Expressions:
{{ }}accepted
limit
Maximum count
- Type: Number (
number) - Required: No
- Default:
100 - Whole number, from 1 to 2000
- Shown when:
actionislist
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.