Google Drive Integration
Attach Google Drive files to any record (Contact, Lead, Opportunity, custom entity) and store inline images from rich-text custom fields in your Drive workspace. Coeffection never stores the file bytes — only a reference to the Drive file ID and a signed URL fetched on view.
Prerequisites#
- Google account (personal or Workspace) with access to the Drive folder you want files written to.
- Coeffection role with
integrations:managepermission (typically Admin).
OAuth scopes#
Coeffection requests three Drive scopes on first connection:
drive.file— read/write only files Coeffection creates or you explicitly pick. Coeffection cannot see your other Drive files.drive.readonly(optional) — required only if you want the Drive folder picker to browse your existing folders.drive.metadata.readonly— used to fetch file names/icons for the file picker.
Connecting Google Drive#
- Go to Admin Settings → Integrations → Google Drive.
- Click “Connect Google Drive”.
- Sign in with the Google account that owns the target Drive workspace.
- Approve the requested scopes.
- Pick a default folder for uploads (or accept the auto-created “Coeffection” root folder).
Attaching Drive files to records#
Records that have a Drive File custom field can store one or more attached Drive files. To add an attachment:
- Open any record (Contact, Lead, Opportunity, etc.).
- Find the Drive File field (custom field type configured by your Admin).
- Click “Add file” → the Google Drive picker opens in a modal.
- Pick an existing file OR upload a new one from your computer (uploaded files land in the default folder you picked at connection time).
- Attached files appear as chips with name, icon, and size.
Inline images in rich-text fields#
When a Rich-Text custom field is configured with Drive as the image provider, dragging or pasting an image into the editor uploads it to your chosen Drive folder and inserts a reference. See Rich-Text Fields for the editor walkthrough.
Permissions & sharing#
- Files uploaded by Coeffectionare shared as “anyone with the link” by default so any Coeffection user viewing the record can fetch the file. You can tighten this in Drive (Share → Restricted) after upload, but the file will only render in Coeffection for users who also have Drive access to it.
- Files attached from your existing Drivekeep their existing sharing rules — Coeffection doesn't change them.
- Image bytes never touch Coeffection servers — the editor fetches a signed URL from Drive at render time.
Troubleshooting#
“Provider unavailable” in the rich-text editor
The Drive integration is not connected, OR the rich-text field isn't configured to use Drive as its image provider. Check Admin Settings → Integrations → Google Drive, then verify the custom field's “Image storage” setting.
Picker shows no folders
Coeffection requested the drive.file scope only by default. Re-consent with the optional drive.readonly scope to enable folder browsing (Admin Settings → Integrations → Google Drive → “Reconnect with full picker”).
Inline image shows broken icon on a shared record
The viewer's Google account doesn't have access to the Drive file. Open the file in Drive and add the viewer's account, or change sharing to “Anyone with the link”.