Component to interact with Dropbox. Dropbox is a cloud storage service, which allows copy files to the cloud and accesses them later from a different device.
The technical notes page gives some technical details about Dropbox component like changelog and completeness matrix.
It is used Dropbox JavaScript SDK.
Name | Mandatory | Description | Values |
---|---|---|---|
ATTACHMENT_MAX_SIZE |
false | For AVA attachments configuration. Maximal possible attachment size in bytes. By default set to 1000000 and according to platform limitations CAN’T be bigger than that. |
Up to 1000000 bytes |
Please Note: From the platform version 20.51 we deprecated the component
LOG_LEVEL
environment variable. Now you can control logging level per each step of the flow.
The Dropbox SDK utilizes OAuth 2 for authorizing API requests. To ensure secure communication and access to Dropbox resources, you need to obtain an access token. To get started, create and set up your app. For detailed instructions on how to set up OAuth and generate an access token
, refer to the Dropbox OAuth guide.
To create and set up your app, follow these steps:
1. Navigate to the Dropbox App Center
in your web browser.
2. In the Manage
section, click on Build an app
.
3. On the redirected page, click on the Create app
button.
4. Fill in the required fields, such as Choose an API
, Choose the type of access you need
and Name your App
. After configuration, press Create app
.
On the ‘Developer Settings’ page of your app, follow these steps:
OAuth2
title.Generate
button located below the Generate access token
field to generate a new access token.Please note: In order to perform certain actions, such as accessing user files or creating folders, you need to have all necessary permissions enabled. To manage permissions, click on the
Scoped App
link in theDeveloper Settings
section or switch to theDeveloper Permissions
page.
This component has no trigger functions. This means it will not be accessible to select as a first component during the integration flow design.
Action to get file from Dropbox by provided path
Default No
. In case No
is selected - an error will be thrown when no files were found,
If Yes
is selected - an empty object will be returned instead of throwing an error.
Default No
. In case No
is selected - an error will be thrown when file path is missing in metadata, if Yes
is selected - an empty object will be returned instead of throwing an error.
Checkbox for attaching files content to action response
{
"path": "/inner_folder/file.any"
}
{
".tag": "file",
"name": "file.any",
"path_lower": "/file.any",
"path_display": "/file.any",
"id": "id:Ua3SpE_E_CAAAAAAAAAACA",
"client_modified": "2020-03-31T11:25:40Z",
"server_modified": "2020-03-31T11:25:40Z",
"rev": "015a224d3e0147b00000001b724db90",
"size": 28,
"is_downloadable": true,
"content_hash": "10931f016454cbd4d852632b81f2e5ab2502dc120e2afb7efcd6b64fb9d27e7a"
}
Action upserts (create or replace) with file from attachment by provided path in Microsoft One Drive. If more then 1 attachments (or no attachments) provided the action will throw an error:
{
"path": "/base_folder/inner_folder/file.any"
}
{
".tag": "file",
"name": "file.any",
"path_lower": "/file.any",
"path_display": "/file.any",
"id": "id:Ua3SpE_E_CAAAAAAAAAACA",
"client_modified": "2020-03-31T11:25:40Z",
"server_modified": "2020-03-31T11:25:40Z",
"rev": "015a224d3e0147b00000001b724db90",
"size": 28,
"is_downloadable": true,
"content_hash": "10931f016454cbd4d852632b81f2e5ab2502dc120e2afb7efcd6b64fb9d27e7a",
"url": "http://maester-service.platform.svc.cluster.local:3002/objects/70d14266-37ae-46b7-b485-d4a2948b24e7?storage_type=maester"
}
Action to delete folder or file from Dropbox by provided path:
{
"path": "base_folder/inner_folder/file.any"
}
Error response example
{
"metadata":{
"path":"/test/DeleteByPath/Document.docx"
},
"result":"path_lookup/not_found/...",
"error":{
".tag":"path_lookup",
"path_lookup":{
".tag":"not_found"
}
}
}
Successful response
{
"metadata":{
".tag":"file",
"name":"Document.docx",
"path_lower":"/test/deletebypath/document.docx",
"path_display":"/test/DeleteByPath/Document.docx",
"id":"id:o0yGDTvyrFAAAAAAAAAAIw",
"client_modified":"2020-03-31T13:32:00Z",
"server_modified":"2020-03-31T13:32:01Z",
"rev":"015a22697b3373f000000013a1ecc50",
"size":10982,
"is_downloadable":true,
"content_hash":"8424108d60c2a77a6c36355e4a974882a79ca4ecd25a611f0c0b68713d31a044"
},
"result":"deleted"
}
Create new folder in provided path
. Path should contains folder name:
Fail
. Options: Fail
, Rename
, Skip
.
Fail
- fails if folder with same name already exists under provided path
Rename
- rename folder if folder with same name already exists under provided path
. Examples: exists
-> exists (1)
, exists (1)
-> exists (1) (1)
Skip
- ignore error for already existing folder, returns {}
if selected/
for root{
"path": "/test/create/folder"
}
{
"name": "Folder",
"path_lower": "/test/create/folder",
"path_display": "/test/create/Folder",
"id": "id:U6e6XFFVGvAAAAAAAAAAlw"
}