gitlabEdit

๐Ÿ“คUpload Dispatch

Learn how to upload generated documents to storage providers and CRM systems through Docs-Dispatcher.

Overview

This recipe covers:

  1. Uploading documents to cloud storage

  2. Upload to CRM systems (Zoho CRM)

  3. Universal upload provider

  4. Combining upload with other services

  5. File metadata and organization

What You'll Learn

  • Upload documents to various storage providers

  • Attach files to CRM records

  • Configure upload destinations

  • Handle upload responses

  • Complete examples in 4 languages

Prerequisites

  • Docs-Dispatcher account with JWT

  • Upload provider configured (Zoho CRM, Universal, etc.)

  • Template created

  • Basic REST API knowledge

Upload Service Overview

Supported upload targets:

  • โœ… Zoho CRM - Attach to records (Leads, Contacts, Deals, etc.)

  • โœ… Universal - Generic file upload to any storage

  • โœ… AWS S3 - Amazon S3 buckets

  • โœ… Google Drive - Google Drive folders

  • โœ… Dropbox - Dropbox folders

Step 1: Authentication

Dispatcher API uses HTTP Basic Authentication. You'll need your Dispatcher account email and password for all API calls.

Setup Credentials

circle-info

No token management needed! Unlike JWT-based APIs, Basic Auth doesn't require separate authentication endpoints or token refresh. Your credentials are sent with each request.

Quick links:

Step 2: Upload to Zoho CRM

Basic Zoho CRM Upload Structure

Upload Request

Success Response:

Zoho CRM Modules

Common modules to upload to:

Module
Use Case

Leads

Lead documents, quotes

Contacts

Contact agreements, NDAs

Accounts

Company contracts, SOWs

Deals

Proposals, contracts

Invoices

Invoice PDFs

Quotes

Quote documents

Contracts

Contract PDFs

Step 3: Universal Upload Provider

Generic upload for any storage system:

Universal Upload Response:

Step 4: Combine Upload with Other Services

Upload a document AND send it via email:

Complete Examples

curl (Complete Flow)

Node.js (Complete Flow)

PHP (Complete Flow)

Java (Complete Flow)

Provider Comparison

Feature
Zoho CRM
Universal
AWS S3
Google Drive

CRM Integration

โœ…

โŒ

โŒ

โŒ

Custom Headers

โŒ

โœ…

โŒ

โŒ

Folder Organization

โš ๏ธ Modules

โœ…

โœ…

โœ…

Direct URLs

โœ…

Depends

โœ…

โœ…

Metadata

โœ…

Custom

โœ…

โœ…

Best Practices

1. Use Descriptive Filenames

2. Include Attachment Names (Zoho CRM)

3. Handle Large Files

For files > 10MB, consider async mode:

Error Handling

Common Errors

Record Not Found

Permission Denied

Next Steps

  • Email - Combine upload with email

  • Async Flow - Upload large files asynchronously

Summary

You've learned:

  • โœ… Upload documents to Zoho CRM

  • โœ… Use universal upload provider

  • โœ… Combine upload with other services

  • โœ… Complete implementations in 4 languages

Document upload streamlines your CRM and storage workflows!

Last updated