SugarAI is currently reviewing our Marketplace strategy and submission process. During this time, we are temporarily pausing new Marketplace partner and add-on submissions.

We appreciate your patience as we work to ensure the Marketplace continues to provide a strong and relevant experience for our customers and partners. For questions, contact marketplace@sugarai.com.

by techloyce

Once place for all your files, wherever you are, including in Sugar. Dropbox is used by many businesses for all of their photos, docs, videos, and files. Now with DropBox For Sugar they can be accessed directly from within Sugar.

Includes a 30 day guarantee
Try it Now

By clicking you consent to share your profile with the developer

Dropbox for SugarAI

Version 2.0.0 · SugarAI 14, 25 and 26 · By Techloyce

Is Dropbox for Sugar Right for You?

  • Does your team keep its files in Dropbox?
  • Would you like files attached in Sugar to be saved to Dropbox automatically?
  • Do you want to browse, upload and download Dropbox files without leaving Sugar?

Dropbox for Sugar connects SugarAI to Dropbox. Attach a file to an Account, Contact, Lead or Opportunity and it is uploaded to Dropbox, in a folder for that record. Everyone in Sugar can open it from the record, and the Dropbox Files screen lets your team work with the Dropbox folder directly from Sugar.

How It Works

  1. Attach a file in the Dropbox subpanel of an Account, Contact, Lead or Opportunity.
  2. Upload: Sugar uploads the file to Dropbox, into a folder for the record, for example SugarCRM/Accounts/Northwind Traders.
  3. Open: the record shows Uploaded to Dropbox and a Dropbox File link that downloads the file from Dropbox.
  4. Browse: open Dropbox Files to see the folders, upload files, create folders and download.

Features

  • Files from Accounts, Contacts, Leads and Opportunities are saved to Dropbox automatically.
  • Choose where uploads go: one folder, a folder per module, or a folder per record.
  • Dropbox Files browser in Sugar: folders and breadcrumbs, filter, sorting, upload (button or drag and drop), new folder and download. Administrators can also delete.
  • Large files: files over 150 MB are uploaded in parts.
  • Secure connection through the Dropbox API v2 with OAuth 2.0. No Dropbox password is stored in Sugar. The App secret and the tokens are stored encrypted, and access is renewed automatically.
  • Works with an App folder app, so Sugar sees only its own folder in your Dropbox.
  • Built-in setup guide, a Test Connection button, and clear messages that tell you what to fix.
  • Only administrators can change the settings. Other users see only the Sugar upload folder.

What's New in Version 2.0.0

Version 1.x no longer works: it used a long-lived access token pasted by each user, which Dropbox stopped issuing in 2021. Version 2.0.0 is rebuilt for Sugar 26:

  • An administrator connects one Dropbox account with a single Connect to Dropbox click.
  • New Dropbox Settings screen with a setup guide, upload options and Test Connection.
  • New Dropbox Files browser with upload, new folder and download.
  • Records show their upload status and a Dropbox File download link.
  • Supports Sugar 14, 25 and 26 and passes Sugar's package scanner.

Upgrading from 1.x? See Upgrading and uninstalling.

Requirements

  • SugarAI 14.x, 25.x or 26.x: Sugar Enterprise or Enterprise+, on-premise.
  • A Sugar administrator account to install and set up the add-on.
  • A Dropbox account. A free Dropbox Basic account works.
  • Sugar must be reached over https. Dropbox accepts only https redirect URIs (http is allowed for localhost only).
  • Outbound HTTPS from the Sugar server to api.dropboxapi.com and content.dropboxapi.com.
  • A license key for the add-on.

Getting Started

Setup takes about 10 minutes and is done once by a Sugar administrator.

  1. Install the add-on
  2. Activate your license
  3. Create a Dropbox app
  4. Connect Sugar to Dropbox
  5. Save a file to Dropbox
  6. Browse Dropbox files
  7. Who can do what
  8. Troubleshooting
  9. Upgrading and uninstalling

1. Install the add-on

  1. In Sugar, open Admin > Module Loader.
  2. Click Choose File, select Premium-DropboxPackage2.0.0-Sugar26.zip and click Upload.
  3. Click Install next to the uploaded package, accept the license and finish the installation. Sugar runs a repair and rebuild automatically.

When the installation is finished, the package is listed as Dropbox 2.0.0.

01-module-loader.png

The installation:

  • creates the Dropbox module and adds a Dropbox subpanel to Accounts, Contacts, Leads and Opportunities;
  • adds the Dropbox Settings and Dropbox Files screens.

The Admin page now has a Dropbox section with Dropbox Settings, Dropbox License and Dropbox Files.

02-admin-dropbox.png

2. Activate your license

  1. Go to Admin > Dropbox License.
  2. Paste your license key and click Validate.

03-license.png

You can find your key in your SugarOutfitters account under Purchases.

3. Create a Dropbox app

Sugar connects to Dropbox through an app that you create once in the Dropbox Developer Console. Keep Admin > Dropbox Settings open in another tab: you copy the Redirect URI from it.

Create the app

  1. Open the Dropbox Developer Console, sign in with the Dropbox account Sugar should use and click Create app.
  2. Choose Scoped access (1).
  3. Choose App folder (2). Sugar then sees only its own folder, Apps/, in your Dropbox. Choose Full Dropbox instead if Sugar should see the whole Dropbox.
  4. Enter a name (3), for example Acme Sugar Files. The name may not contain the word "Dropbox".
  5. Click Create app (4). The first time, Dropbox asks you to agree to its API terms.

04-dbx-create-app.png

Allow reading and writing files

  1. Open the Permissions tab and tick files.content.write (2) and files.content.read (3). Dropbox ticks files.metadata.read (1) for you.
  2. Click Save changes (4).

05-dbx-permissions.png

Add the Redirect URI

  1. Open the Settings tab (1).
  2. Under OAuth 2 > Redirect URIs, paste the Redirect URI from Sugar's Dropbox Settings (2), for example https://crm.example.com/index.php?entryPoint=dropboxOAuth.
  3. Click Add (3), then Add redirect URI to confirm.

06-dbx-redirect-uri.png

Copy the App key and secret

  1. On the same tab, copy the App key (1).
  2. Click Reveal app secret and copy the App secret (2).

07-dbx-key-secret.png

In the Dropbox Developer Console In Sugar Dropbox Settings
App key App key
App secret App secret
Generated access token not needed
Allow public clients not needed

4. Connect Sugar to Dropbox

Go to Admin > Dropbox Settings. The screen has four steps on the left (Dropbox app, Connect, Uploads and Test), and a setup guide with a direct link to the Developer Console on the right. Fill in the app and the uploads and save them first, then connect and test.

Enter the Dropbox app

  1. App key: paste the App key (1).
  2. App secret: paste the App secret (2). It is stored encrypted and never shown again. To replace it later, paste a new one. Leave the box empty to keep the saved one.
  3. Redirect URI: click Copy (3) to copy the URI you add to the app (section 3, step 9). If your Sugar site is reached at a different address, open Use a different redirect URI.

08-settings-app.png

Choose where uploads go

  1. Upload folder: the folder Sugar creates in Dropbox for its files. Default: SugarCRM.
  2. Organize uploads: where each file goes.
Option Example path of a file attached to the account Acme Inc
One folder /SugarCRM/Proposal.pdf
By module /SugarCRM/Accounts/Proposal.pdf
By record /SugarCRM/Accounts/Acme Inc/Proposal.pdf

With an App folder app, these paths are inside Apps/ in your Dropbox. When a file with the same name already exists, Dropbox adds a number, for example Proposal (1).pdf.

  1. Click Save at the bottom of the screen.

09-settings-uploads.png

Connect

  1. Click Connect to Dropbox. Dropbox opens in the same window. If you are not signed in, sign in with the Dropbox account Sugar should use.
  2. Dropbox may first show Before you connect this app…, because the app is your own and not published. Click Continue.
  3. Click Allow.

10-dbx-allow.png

Dropbox brings you back to Dropbox Settings. The Connect step shows the connected Dropbox account and its storage, and the badge at the top right shows Connected.

Test

  1. Click Test Connection. When everything is correct, you see Connected to Dropbox as … with the account name and the storage used (1).

11-settings-connected.png

If the test fails, the message tells you what to fix. See Troubleshooting.

The setup guide on the right of the screen repeats these steps, with buttons that copy the Redirect URI and jump to the App key and App secret fields.

12-setup-guide.png

5. Save a file to Dropbox

  1. Open an Account, Contact, Lead or Opportunity.
  2. In the Dropbox subpanel, click +.

13-subpanel-create.png

  1. Next to File, click Browse and choose the file (1). The Name is optional: when it is empty, the record is named after the file.
  2. Click Save (2).

14-create-record.png

Sugar uploads the file to Dropbox. The subpanel lists the new record with its Dropbox File link and the Dropbox Status Uploaded to Dropbox.

15-subpanel-uploaded.png

Open the record to see the file, its status and the Dropbox File link. Click the link to download the file from Dropbox.

16-dropbox-record.png

Dropbox Status Meaning
Uploaded to Dropbox The file is saved in Dropbox.
Upload failed: … The file was not uploaded. The message says why, for example that Dropbox is not connected. Fix the cause, then edit the record and attach the file again.

To replace the file, edit the record and attach the new file. A file with the same name replaces the old one in Dropbox, and Dropbox keeps the old one in its version history.

6. Browse Dropbox files

Open Dropbox Files from the Dropbox module menu, or from Admin > Dropbox Files. The screen lists the folders and files in Dropbox:

  • Click a folder to open it. The breadcrumbs at the top take you back.
  • Filter this folder finds a file by name. Click a column heading to sort.
  • Upload file uploads a file to the open folder. You can also drop a file on the page.
  • + New folder creates a folder in the open folder.
  • Download downloads a file. Administrators also see Delete.

17-dropbox-files.png

7. Who can do what

Administrators Other users
Dropbox Settings, Connect, Test Connection Yes No
Attach files to Dropbox records Yes Yes, as allowed by their Sugar role
Dropbox Files: browse, upload, new folder, download The whole Dropbox (or app folder) Only the Sugar upload folder
Dropbox Files: delete Yes No

All users work through the one Dropbox account the administrator connected. To limit who can create Dropbox records, change the Dropbox module in Admin > Role Management.

8. Troubleshooting

Dropbox says "Invalid redirect_uri". The Redirect URI is not on the app. Copy it from Dropbox Settings and add it on the app's Settings tab under OAuth 2 > Redirect URIs, exactly as shown, then click Connect to Dropbox again.

Dropbox Settings says Dropbox only accepts https:// redirect URIs. Sugar must be reached over https. If Sugar has a different public address, enter it under Use a different redirect URI.

The test says "Check the App key and App secret". The App key and the App secret must come from the same app. Copy both again from the app's Settings tab, paste them, click Save and Connect to Dropbox again.

The test says the app is missing a permission. On the app's Permissions tab, tick files.metadata.read, files.content.read and files.content.write, click Save changes, then click Reconnect in Dropbox Settings. Dropbox applies new permissions only after you connect again.

"The Dropbox connection was revoked or the app changed." The access was removed in Dropbox (for example under Connected apps), or the app was deleted. Click Reconnect in Dropbox Settings.

"The Dropbox sign-in could not be verified." The sign-in link was old or was opened in another browser session. Click Connect to Dropbox again.

A record's Dropbox Status says "Upload failed: The Dropbox account is full." Free up space in Dropbox or upgrade the Dropbox plan, then attach the file again.

The Dropbox subpanel or menu is missing. Run Admin > Repair > Quick Repair and Rebuild, then refresh the browser.

A screen is blank or shows an error. Check sugarcrm.log in the Sugar root folder for lines starting with [Dropbox], and the web server's PHP error log. Send those lines to support.

9. Upgrading and uninstalling

Upgrading from 1.x. Install 2.0.0 over the old version in Module Loader, then follow Connect Sugar to Dropbox. The upgrade removes the 1.x files and the access tokens that users pasted in 1.x. Your Dropbox records stay. If 1.x uploaded files, new uploads keep going to its /SugarFiles folder; you can change the folder in Dropbox Settings.

Uninstalling. In Admin > Module Loader, click Uninstall next to Dropbox and choose whether to keep the Dropbox records. Uninstalling removes the saved Dropbox settings. Files stay in Dropbox. To also remove Sugar's access, disconnect the app in Dropbox under Settings > Connected apps.


Support

Contact Techloyce support with your Sugar version, the add-on version (2.0.0) and any [Dropbox] lines from sugarcrm.log.

For more info: Click Here  |  Partner Info

Dropbox for Sugar Dropbox
View Pricing
Backed by our Tried & Tested, 30-Day Money Back Guarantee.