Docusign + Salesforce

Send From Salesforce. Let Salesforce Know What Happened.

Installing the Docusign managed package gets you a send button. It does not tell Salesforce that the contract came back, update the stage, file the executed PDF against the record, or capture what the signer typed into the form. That configuration is the integration — and it is where most Salesforce and Docusign implementations stop short.

  • Apex Toolkit for custom send experiences
  • Status writeback to standard and custom objects
  • CLM for Salesforce where contracts need lifecycle
Salesforce Agreement Flow
RECORD TO SIGNATURE TO RECORD Opportunity reaches send stage Validation rules confirm the record is complete Salesforce Envelope composed from record data Template plus merge fields from the opportunity Apex Toolkit Recipients resolved Contact roles, owner, and approvers by rule Routing Signer completes the document Identity check applied per agreement type eSignature Docusign notifies Salesforce Envelope and recipient status events Connect Record updated Fields written back, document filed, flow fired Writeback WHAT SALESFORCE GAINS A stage that moves on the signature itself Not on someone remembering to update it on Monday Reportable cycle time from send to signature Because both timestamps live on the record
The Integration

What Connecting Docusign to Salesforce Actually Means

A Docusign Salesforce integration is a two-way link between a Salesforce record and a Docusign envelope. Data flows out of Salesforce to compose and address the document; envelope and recipient status, the executed document and anything the signer entered flow back to update the record. Docusign provides the managed package, the Apex Toolkit and the Connect notification service that make this possible. The integration work is deciding which objects and fields participate, in which direction, and what Salesforce should do when each status arrives.

Business purpose, plainly: so that the CRM's picture of a deal reflects the agreement rather than trailing it by however long it takes someone to notice and type. Every downstream consequence — forecast accuracy, provisioning triggers, invoicing, renewal tracking — depends on that one fact being current and automatic.

The two products, and which you need

Docusign eSignature for Salesforce covers sending, signing and status. Docusign CLM for Salesforce adds generation from a template library, a structured contract repository and configurable review and approval workflow, with one-click generation from opportunity data. They solve different problems and are licensed separately. The usual mistake is buying CLM to fix a writeback problem, or trying to force eSignature to carry a contract lifecycle it was never meant to hold.

Where the integration commonly falls short

Three patterns account for most of the remediation work we are asked to do. Writeback is configured for envelope completion only, so nothing distinguishes "declined" from "still waiting". Recipients are resolved from a single field rather than from contact roles, so multi-party agreements are addressed by hand. And the send action is a button with no preconditions, so envelopes go out against records that are missing the values the document needs.

What We Configure and Build

The Salesforce Side of the Work

Most of an integration engagement is Salesforce work, not Docusign work. The platform capabilities below are Docusign's; the design decisions around them are what we are engaged for.

Package

Managed package configuration

Install, connect the Salesforce org to the Docusign account, and configure the sending settings, layouts and permission sets so each role sees the send action it should and none of the ones it should not.

  • Account linking and connected app setup
  • Permission sets by sending role
  • Page layout and Lightning record page placement
Apex

Apex Toolkit development

The Apex Toolkit is what the managed package itself is built on, and it is how a send experience gets tailored: composing envelopes in code, resolving recipients from related records, and applying document and field logic the declarative setup cannot express.

  • Custom send actions from any object
  • Recipients resolved from related lists and roles
  • Bulk-safe patterns that respect governor limits
Writeback

Status and document writeback

Docusign supports mapping envelope and recipient status to Salesforce field updates — setting a checkbox when a recipient has viewed, moving a stage on completion. We define that mapping per agreement type, including the negative paths, and confirm the sending user's permissions actually allow the updates.

  • Envelope and recipient status mapped to fields
  • Declined, voided and expired handled explicitly
  • Executed document and certificate filed to the record
Data

Signer-entered data returned

Where the signer completes fields — a purchase order number, a delivery address, a consent option — those values come back to Salesforce fields rather than being trapped in the PDF, so downstream automation can act on them.

  • Document fields mapped to Salesforce fields both ways
  • Validation on return, not just on send
  • Values available to flow and reporting
Flow

Downstream automation

Completion is a trigger, not an ending. We wire the status change into the automation that should follow it — provisioning tasks, finance handoff, renewal date calculation — using record-triggered flow so the logic stays where administrators can maintain it.

  • Record-triggered flow on status change
  • Preconditions enforced before send, not after
  • Error handling that surfaces to a human
CLM

Docusign CLM for Salesforce

Where the requirement is contract lifecycle rather than signature: generating contracts populated from opportunity data, routing them through approval, and holding them in a repository that can be reported on. Covered in depth on the CLM implementation page.

  • One-click generation from opportunity data
  • Workflow triggered from opportunity stage
  • Repository structure and metadata design
Sales Lifecycle Mapping

Where the Agreement Touches Each Stage

The integration design falls out of this mapping. Decide what the agreement does to the record at each stage, and the field, object and automation decisions mostly answer themselves.

Opportunity stage, agreement action, and what changes in Salesforce
StageAgreement actionWhat changes in Salesforce
ProposalQuote or proposal generated from opportunity and line-item data and sent for acknowledgement.Document filed to the opportunity; sent timestamp recorded; delivery and view status visible on the record.
NegotiationNon-standard terms requested. Where CLM is in use, redlines and clause fallbacks are handled in the workflow rather than by email.Approval status and approver identity recorded; non-standard-terms flag raised for reporting.
ContractingFinal agreement routed to signers in defined order, with the identity check the document type requires.Recipient-level status updates as each party acts; declined or voided outcomes set their own field values, not silence.
Closed WonAll parties have signed; Docusign issues the Certificate of Completion.Stage moves on the completion event; executed document and certificate filed; downstream flow fires.
ProvisioningExecuted terms are the input to fulfilment, invoicing and revenue recognition.Signer-entered values and contract terms pass to the finance or ERP system from fields, not from a PDF.
RenewalRenewal and notice dates are derived from the executed agreement.Dates stored as fields on the contract or account record, so they can drive tasks, alerts and reports.
Technical Considerations

The Decisions That Cost Later

These are the points where a Docusign Salesforce integration is usually either sound or quietly storing up work. None of them are difficult to get right at design time; all of them are expensive to change once volume is flowing through.

They are also the questions we ask first when reviewing an integration somebody else built.

Which object holds the agreement

Sending from the opportunity is the default and is often wrong. Where one deal produces several agreements, or agreements outlive the opportunity, a dedicated agreement object gives you a place to put status, dates and terms that reporting can reach.

Permissions on the writeback target

Writeback runs in the sending user's context and requires update permission on the target objects and fields. A mapping that works for an administrator in testing and silently fails for a sales user in production is the classic version of this defect.

Governor limits under bulk

Apex Toolkit code written against a single record will fail the first time it meets a bulk update or a data load. Envelope composition belongs outside synchronous transaction limits where volume warrants, with queries and DML bulkified from the start.

Sandbox and account pairing

A Salesforce sandbox must point at a Docusign demo account, not production, or testing sends real agreements to real people. Refreshing a sandbox resets that pairing, which is why re-linking belongs in the refresh runbook rather than in somebody's memory.

What the previous package left behind

Replacing an incumbent e-signature tool leaves buttons, fields, flows and triggers referencing it. Retiring them deliberately is part of the work; leaving them is how the next administrator inherits an org where two signature paths appear to exist.

Integration Review

Already Connected, But Not Finished?

Most orgs we look at have the package installed and the send button working. The gap is everything after the signature. A review of your org and your Docusign account will tell you which of the signals opposite apply and what it would take to close them.

Opportunity stages are still moved by hand after signature, so the pipeline is accurate only as far back as someone last tidied it.
A declined or expired envelope looks the same in Salesforce as one still waiting — silence in both cases.
Executed documents live in Docusign or an inbox rather than filed against the Salesforce record they belong to.
Senders add recipients manually on every envelope because contact roles are not being used to resolve them.
Nobody can produce a report of average time from send to signature, because one of the two timestamps is not in Salesforce.

Relatable? We should definitely talk.

What we'll cover:

From CRM and integrations to custom apps and complex system architecture — we help you scale without chaos.
  • Identify revenue leaks across CRM, integrations, and GTM
  • Design and optimize complex systems (CRM to Custom Apps)
  • Apply practical AI to improve operations and pipeline conversion
  • Eliminate silos and build a unified revenue system
  • Assess GTM performance and key bottlenecks
  • Align teams with clear processes and ownership
  • Define a scalable RevOps model
  • Improve forecasting and reporting
  • Review your HubSpot/Salesforce setup for scale