Skip to main content

Celonis Product Documentation

Dropbox (Action Flows)

The Dropbox modules enable you to monitor, search, retrieve, or list files, and create and edit files and folders in your Dropbox account.

To get started with Dropbox, create an account at www.dropbox.com/register.

Connecting Dropbox to Execution Management System

You can connect to the Dropbox app using your account credentials or by creating a custom app in your Dropbox developer account.

  1. Log in to your Execution Management System account, insert any Dropbox module Action Flow, and click the Add button next to the Connection field.

    dropbox-1.png
  2. Optional: In the Connection name field, enter a name for the connection

  3. Optional: Click Show Advanced Settings and enter the client credentials for your app. See Create a custom app and client credentials.

    dropbox-2.png
  4. Click Save.

  5. Confirm the access by clicking Allow.

    dropbox-3.png
Create a custom app and client credentials

To create a custom app:

  1. Log in to your Dropbox developer account and navigate to the Apps section.

  2. Click Create app, and enter the following details.

    dropbox-4.png

    Choose an API

    Select the access level of your app needs to Dropbox data.

    Choose the type of access you need

    Select an option for the access you want to give to the app:

    • App folder - Access to a single folder created specifically for your app.

    • Full Dropbox - Access to all files and folders in a user's Dropbox.

    Name your app

    Name of the app.

  3. Click Create app.

  4. In the OAuth2 field, add the Redirect URI, https://www.integromat.com/oauth/cb/app.

  5. Click the Permissions tab, select the required scopes for the app, and click Submit.

  6. Click the Settings tab, and copy the API key and API secret values which are the Client ID and Client Secret to a safe place.

You have successfully created a custom app and client credentials.

Trigger Files

You can watch files using the following module.

Triggers when a file is added to a folder being watched. This module retrieves a number of files/folders till 4000.

Connection

Establish a connection to your Dropbox account.

Folder

Select the folder you want to watch for changes.

Watch also subfolders

Enable this option to monitor also subfolders for modified files.

Limit

Set the maximum number of files Execution Management System will return during one execution cycle.

Get Files/Folders

You can search and list files, folders, and subfolders

Searches for the files or folders by the specified search term and filter settings.

Required Permissions: files.metadata.read

Connection

Establish a connection to your Dropbox account.

Search

Enter the search term.

Folder

Select the folder you want to search. Searches the entire Dropbox if not specified.

File Status

Select the file status to restrict the search to the selected file status.

File Categories

Select the file categories to restrict the search to the selected categories.

File extensions

Specify the file extensions you want to search for.

Limit

Set the maximum number of results Execution Management System will return during one execution cycle.

Retrieves shared folder details.

Required Permissions: sharing.read

Connection

Establish a connection to your Dropbox account.

Shared Folder ID

Enter (map) the ID of the folder you want to retrieve details about.

Downloads a file from a specified folder.

Required Permissions: files.content.read; files.metadata.read

Connection

Establish a connection to your Dropbox account.

Way of selecting files

Select an option to choose the file you want to download.

File Path

Select or map the file you want to download. If you are entering the file path manually, use the format similar to the example, /abc/xyz/file.txt

Returns files or folders in the specified folder.

Required Permissions: files.metadata.read

Connection

Establish a connection to your Dropbox account.

List

Select whether you want to retrieve files or folders.

Show Only Downloadable Files

Enable this option to return only downloadable files. Non-downloadable files can be, for example, Google Docs.

Folder

Specify the folder you want to retrieve files or folders from.

Limit

Set the maximum number of results Execution Management System will return during one execution cycle.

Retrieves all file revisions, and version history of the specified file.

Required Permissions: files.metadata.read

Connection

Establish a connection to your Dropbox account.

Way of selecting files

Select whether you want to map/specify the file path or select the file manually.

File Path / File

File Path

Specify the target path to the file.

2019-11-06-12_51_00-integration-dropbox-_-integromat.png

File

Select the file from the menu.

Limit

Set the maximum number of revisions Execution Management System will return during one execution cycle.

Create & Edit File/Folder

Using the following modules, you can upload, create, move, rename, and delete files and folders.

Uploads a provided file to the selected folder.

Required Permissions: files.content.write, files.metadata.read

Connection

Establish a connection to your Dropbox account.

Folder

Select the folder of your Dropbox to which you want to upload the file.

Source File

Specify the file you want to add to the Dropbox folder selected above.

File name

Enter or map the file name, including the file extension.

File data

Enter or map the file data (from the previous module, e.g. Google Drive > Get a File)

Caution

The maximum size of the uploaded file is 150 MB.

Overwrite an existing file

Enable this option to replace the existing file with the new file. If this option is left disabled, the uploaded file will be renamed.

Creates a new folder in the specified path.

Required Permissions: files.content.write, files.metadata.read

Connection

Establish a connection to your Dropbox account.

Folder Name

Enter the name of the new folder.

Folder

Specify the path where you want to create a new folder.

In case you are using a Dropbox Business account (with team spaces) remove the slash / or do not click the Click here to choose folder button to create a team folder in the root.

61d5af9d4552d.gif

If you do not remove the slash, an error [409] path/malformed_path/.. is returned.

Auto rename

Enable this option to rename the new folder, if the folder with the same name already exists in the target location.

Creates a DOC file or overwrites the content of an existing one.

Required Permissions: files.content.write, files.metadata.read

Connection

Establish a connection to your Dropbox account.

Select to

Select whether you want to Create or Overwrite a DOC file.

Folder

Select the target location you want to create a file.

Source File

Specify the file you want to add to the Dropbox folder.

File name

Enter the file name for the new DOC file (without an extension).

File Content

Enter the text content of the DOC file.

Creates a public link to the file that allows you to share the file with anyone.

Required Permissions: sharing.write, sharing.read, files.metadata.read

Connection

Establish a connection to your Dropbox account.

Way of selecting files

Select whether you want to map/specify the file path or select the file manually.

File Path / File

File Path

Specify the target path to the file.

File

Select the file from the menu.

Requested Visibility (Deprecated)

Select whether the link will be public, for the team, or password restricted.

Note

This option has been deprecated in Dropbox API, please use the parameter, Access Level instead. It can still be used in already set scenarios (backward compatibility with older version).

Link's Expiration Date

Enter the date and time when the link will expire and will be no longer accessible. If left empty, the link will not expire. The list of supported date and time formats.Examples of date format:

Note

Team only and Access with password options are only available to users who have Dropbox Pro or a higher version.

Link's Access Level

Set the permission for the link recipient.

  • Viewer Users who use the link can view and comment on the content.

  • Editor Users who use the link can edit, view, and comment on the content.

  • Max Request for the maximum access level you can set the link to.

Require Password

Select whether a password is required to access the link.

Note

This option is available only to users who have Dropbox Pro or a higher version.

Link's Password

Enter a password for the link.

Note

This field is required if the option, Require Password is set to true.

Allow Download

Select whether you want to enable download option for the link.

Restores a previous version of the file.

Required Permissions: files.content.write, files.metadata.read

Connection

Establish a connection to your Dropbox account.

Way of selecting files

Select whether you want to map/specify the file path or select the file manually.

File Path / File

File Path

Specify the target path to the file.

File

Select the file from the menu.

Revision

Enter or map the revision number of the revision you want to restore.

Moves a file or folder to a different location in your Dropbox.

Required Permissions: files.content.write, files.metadata.read

Connection

Establish a connection to your Dropbox account.

Way of selecting files

Select whether you want to map/specify the file path or select the file manually.

File/Folder Path / File/Folder

File/Folder Path

Specify the target path to the file or folder.

File/Folder

Select the file or folder from the menu.

To Folder

Specify the target location for the file/folder.

New Name

Enter the new name for the file/folder in the new location.

Auto Rename

Renames the new file/folder, if the file/folder with the same name exists. Adds (NUMBER) after the file/folder name. Otherwise, the file/folder in the target location will be overwritten.

Allow ownership transfer

Enable this option to allow moves by the owner even if it would result in an ownership transfer for the content being moved.

Renames a file or folder.

Required Permissions: files.content.write, files.metadata.read

Connection

Establish a connection to your Dropbox account.

Way of selecting files

Select whether you want to map/specify the file path or select the file manually.

File/Folder Path / File/Folder

File/Folder Path

Specify the target path to the file or folder.

File/Folder

Select the file or folder from the menu.

Rename

Enter the target name for the file, including the file extension.

Deletes a file from your Dropbox.

Required Permissions: files.content.write, files.metadata.read

Connection

Establish a connection to your Dropbox account.

Way of selecting files

Select whether you want to map/specify the file path or select the file manually.

File Path / File

File Path

Specify the target path to the file.

File

Select the file from the menu.

Copy a File or Folder

Copies a file or folder to a different location in the user's Dropbox. If the source path is a folder all its content will be copied.

Connection

Establish a connection to your Dropbox account.

Source

Select or map the source file or folder you want to copy.

Target Path

Select or map the file or folder to which you want to copy the source file or folder.

Target Name

Enter a new name for the file or folder that you are copying.

Generate Name from Source

Select whether you want to generate the name of the file or folder from the source path.

Autorename

Select Yes to autorename the file or folder if there is a file or folder with the same name.

File Requests

You can create, retrieve, update, deleted, and list the file requests with the following modules.

Creates a file request.

Connection

Establish a connection to your Dropbox account.

Title

Enter a name for the file request.

Destination Folder

Enter the path of the folder in the Dropbox where uploaded files will be sent.

Description

Enter the details of the file request.

Request is Open

Select whether or not the file request should be open. If the file request is closed, it will not accept any file submissions, but it can be opened later.

Deadline

Enter the date and time by when the file request must be completed. See the supported list of time and date formats.Examples of date format:

Allow Late Uploads

The deadline for the file request. Deadlines can only be set by Professional and Business accounts.

Retrieves specified file request.

Connection

Establish a connection to your Dropbox account.

File Request ID

Select or map the File Request ID whose details you want to retrieve.

Updates a file request.

Connection

Establish a connection to your Dropbox account.

File Request ID

Select or map the File Request ID whose details you want to update.

Title

Enter a new name for the file request.

Destination Folder

Enter the path of the folder in the Dropbox where uploaded files will be sent.

Description

Enter the details of the file request.

Request is Open

Select whether or not the file request should be open. If the file request is closed, it will not accept any file submissions, but it can be opened later.

Deadline

Enter the date and time by when the file request must be completed. See the supported list of time and date formats.Examples of date format:

Allow Late Uploads

The deadline for the file request. Deadlines can only be set by Professional and Business accounts.

Deletes selected file requests.

Connection

Establish a connection to your Dropbox account.

File Request IDs

Add the deleted File Request IDs you want to delete.

Returns a list of file requests owned by this user.

Connection

Establish a connection to your Dropbox account.

Limit

Set the maximum number of file requests Execution Management System will return during one execution cycle.

Other

You can call APIs using the following module.

Allows you to perform a custom API call.

Connection

Establish a connection to your Dropbox account.

URL

Enter a path relative to https://api.dropboxapi.com. For example, /2/files/list_folder.

Note

For the list of available endpoints, refer to the Dropbox API v2 Documentation.

Method

Select the HTTP method you want to use:

  • GET

    to retrieve information for an entry.

  • POST

    to create a new entry.

  • PUT

    to update/replace an existing entry.

  • PATCH

    to make a partial entry update.

  • DELETE

    to delete an entry.

Headers

Enter the desired request headers. You don't have to add authorization headers; we already did that for you.

Query String

Enter the request query string.

Body

Enter the body content for your API call.

Example of Use - List From the Folder

The following API call returns the first 10 files from the /Text files folder in your Dropbox account:

URL:

/2/files/list_folder

Body:

{  
"path": "/Text files",  
"limit": 10,  
"recursive": false,  
"include_deleted": false  
}
61d5af9f1253e.png

Matches of the search can be found in the module's Output under Bundle > Body > entries.

In our example, 10 tickets were returned:

61d5afa03a83c.png
Common problems
Unable to upload or update a file

There are several situations when uploading or updating a file fails:

  • The uploaded file is too big and exceeds the maximum file size allowed for your Dropbox plan or you have used all of your Dropbox account's storage quota. You will either need to delete existing files from your Dropbox account or upgrade your plan.

  • The previously selected folder, to which the file is being uploaded to, no longer exists. The Action Flow gets stopped and you will need to select the target folder again.