DocuSign + Salesforce
Close Deals Faster by Integrating DocuSign with Salesforce
Automate your entire signature workflow directly inside your CRM so your sales team never leaves Salesforce to get a deal signed.

Why integrate DocuSign and Salesforce?
DocuSign and Salesforce are two of the most widely adopted platforms in modern sales organizations, yet without a direct integration they create costly friction at the worst possible moment — contract execution. When DocuSign is connected to Salesforce, sales reps can send, track, and receive signed agreements without toggling between applications. Tray.ai makes this integration reliable and fully customizable to match your quote-to-cash process.
Automate & integrate DocuSign & Salesforce
Use case
Automated Contract Sending on Opportunity Stage Change
When a Salesforce opportunity moves to a negotiation or contract-sent stage, tray.ai automatically generates a DocuSign envelope pre-populated with contact and deal data from the CRM and sends it to the correct signers. This cuts out the manual work of creating and sending contracts, shrinking the time between verbal agreement and signed document to minutes.
Use case
Signed Document Sync Back to Salesforce Records
Once a DocuSign envelope is completed, tray.ai automatically attaches the signed PDF to the corresponding Salesforce opportunity, account, or contract record and updates relevant fields like close date, contract start date, and contract status. Sales managers get real-time visibility into deal completions without chasing reps for updates.
Use case
Multi-Signer Workflow Orchestration
Complex B2B deals often require signatures from multiple stakeholders across both the buyer and seller organizations. Tray.ai reads the signing order and contact hierarchy from Salesforce and configures DocuSign routing accordingly, so each party receives the agreement in the correct sequence and Salesforce updates as each individual signs.
Use case
Contract Renewal Automation
Tray.ai monitors Salesforce contract records for upcoming renewal dates and automatically initiates a DocuSign renewal envelope in advance, routing it to the correct contacts on the account record. No renewal falls through the cracks, and revenue teams have time to handle objections before the contract lapses.
Use case
Declined or Voided Envelope Alerting and CRM Updating
When a DocuSign envelope is declined or voided, tray.ai immediately updates the associated Salesforce opportunity stage, logs a detailed activity note explaining the status change, and notifies the assigned account executive via Salesforce Chatter or email. Deals don't go stale because of a contract issue nobody noticed.
Use case
New Customer Onboarding Agreement Automation
After a Salesforce opportunity is marked Closed Won, tray.ai automatically triggers a DocuSign onboarding agreement or order form envelope to the new customer's contacts, then updates the Salesforce account record with onboarding status as the documents progress through the signing workflow.
Use case
Compliance and Audit Trail Reporting
Tray.ai pulls DocuSign envelope history — including timestamps, IP addresses, and signer authentication methods — and writes this data back to custom fields or related objects in Salesforce. Compliance and legal teams get a complete, searchable audit trail without logging into DocuSign separately.
Get started with DocuSign & Salesforce integration today
DocuSign & Salesforce Challenges
What challenges are there when working with DocuSign & Salesforce and how will using Tray.ai help?
Challenge
Matching DocuSign Envelopes to the Correct Salesforce Records
Without a structured integration, reconciling a completed DocuSign envelope back to the right Salesforce opportunity, account, or contract record is a manual and error-prone process. Custom fields or naming conventions get used inconsistently, leading to misfiled documents and broken audit trails.
How Tray.ai Can Help:
Tray.ai lets you embed Salesforce record IDs directly into DocuSign envelope metadata at the time of creation, so when a status event fires, the platform can instantly resolve the correct Salesforce record without any ambiguity or manual lookup.
Challenge
Handling Complex, Multi-Template Contract Packages
Enterprise sales cycles frequently require multiple documents combined into a single signing experience — NDAs, order forms, service agreements, addenda — each potentially using different DocuSign templates. Coordinating this across systems manually is time-consuming and increases the chance of sending incomplete packages.
How Tray.ai Can Help:
Tray.ai's workflow logic can evaluate deal attributes in Salesforce — such as product line, region, or contract value — and dynamically assemble the correct combination of DocuSign templates into a composite envelope, so every package is complete and appropriate for the specific deal.
Challenge
Keeping Salesforce Data Fresh Without Overloading API Limits
High-volume sales teams send and receive hundreds of envelopes per day, and a naive polling or sync approach can quickly exhaust Salesforce API call limits, causing delays in data updates and potential workflow failures during peak periods.
How Tray.ai Can Help:
Tray.ai uses event-driven triggers via DocuSign Connect webhooks rather than polling, so API calls to Salesforce happen only when an actual status change occurs. The platform also has built-in rate-limit handling and retry logic to make sure no update is lost even during peak transaction volumes.
Challenge
Enforcing Conditional Approval Gates Before Sending Contracts
Many organizations require internal approvals — from legal, finance, or management — before a contract can go to a customer. Without automation, this gate is often bypassed or managed through informal email threads that lack auditability and create compliance exposure.
How Tray.ai Can Help:
Tray.ai can intercept the contract-sending workflow and check for approval conditions within Salesforce — such as a custom approval status field or Salesforce Approval Process completion — before initiating the DocuSign envelope. If approval is pending, the workflow pauses and notifies the appropriate approver, then resumes automatically once the gate is cleared.
Challenge
Ensuring GDPR and Data Residency Compliance Across Both Platforms
Organizations operating under GDPR or industry-specific data regulations need to ensure that personally identifiable information shared between DocuSign and Salesforce is handled correctly, including limiting data retention and respecting data residency requirements across both platforms.
How Tray.ai Can Help:
Tray.ai gives administrators granular control over which data fields are passed between DocuSign and Salesforce, allows masking or exclusion of sensitive PII in transit, and supports configuration of data processing within specific regional infrastructure — so your integration respects compliance boundaries without sacrificing automation.
Start using our pre-built DocuSign & Salesforce templates today
Start from scratch or use one of our pre-built DocuSign & Salesforce templates to quickly solve your most common use cases.
DocuSign & Salesforce Templates
Find pre-built DocuSign & Salesforce solutions for common use cases
Template
Send DocuSign Envelope on Salesforce Opportunity Stage Change
This template monitors Salesforce for opportunity stage updates and automatically generates and sends a pre-configured DocuSign envelope populated with opportunity and contact data, removing the need for manual contract initiation.
Steps:
- Trigger fires when a Salesforce opportunity moves to a designated stage such as Contract Sent or Negotiation
- Tray.ai fetches the opportunity, account, and primary contact details from Salesforce via API
- A DocuSign envelope is created using a mapped template, pre-filled with deal-specific data, and sent to the correct signers
Connectors Used: DocuSign, Salesforce
Template
Attach Completed DocuSign Envelope to Salesforce Record
When a DocuSign envelope reaches Completed status, this template downloads the signed PDF and audit certificate and attaches both files to the related Salesforce opportunity or contract record, then updates key CRM fields to reflect the execution.
Steps:
- Trigger fires on DocuSign envelope status change event to Completed
- Tray.ai downloads the signed document and certificate of completion from DocuSign
- The files are uploaded as Salesforce ContentVersion records linked to the opportunity, and fields such as Contract Status and Contract Signed Date are updated
Connectors Used: DocuSign, Salesforce
Template
Contract Renewal Reminder and Envelope Dispatch
This template runs on a schedule to identify Salesforce contracts approaching their end date and automatically sends a DocuSign renewal envelope to the relevant account contacts, creating a corresponding renewal opportunity in Salesforce.
Steps:
- Scheduled trigger queries Salesforce for contracts with an end date within a configurable window such as 60 or 90 days
- Tray.ai creates a renewal opportunity in Salesforce and retrieves the associated account contacts
- A DocuSign renewal envelope is generated using the account and contract data and dispatched to the identified signers
Connectors Used: DocuSign, Salesforce
Template
DocuSign Decline or Void Alert to Salesforce and Rep Notification
This template detects when a DocuSign envelope is declined or voided and immediately updates the linked Salesforce opportunity stage, logs an activity, and notifies the assigned sales rep so they can take corrective action without delay.
Steps:
- Trigger fires on DocuSign envelope status change to Declined or Voided
- Tray.ai identifies the linked Salesforce opportunity using the custom field or envelope metadata and updates the stage and forecast category
- A Salesforce task is created for the rep and a Chatter post or email notification is sent with details of the envelope status and next steps
Connectors Used: DocuSign, Salesforce
Template
Closed Won to Onboarding Agreement Automation
This template automatically sends a DocuSign onboarding or order form agreement to a new customer's contacts when a Salesforce opportunity is marked Closed Won, and tracks signing progress back against the Salesforce account record.
Steps:
- Trigger fires when a Salesforce opportunity stage is updated to Closed Won
- Tray.ai retrieves the account contacts and any custom onboarding fields from the opportunity record
- A DocuSign onboarding envelope is sent to the new customer and envelope status events are written back to the Salesforce account as they occur
Connectors Used: DocuSign, Salesforce
Template
Bi-Directional DocuSign and Salesforce Contract Status Sync
This template maintains a live sync between DocuSign envelope statuses and Salesforce contract object records, so any status change — from Sent to Delivered to Completed — is immediately reflected in the CRM without manual intervention.
Steps:
- Trigger fires on any DocuSign Connect webhook event indicating an envelope status change
- Tray.ai maps the DocuSign status to the corresponding Salesforce contract status picklist value
- The Salesforce contract record is updated via API and a timestamped activity log entry is created for the full history trail
Connectors Used: DocuSign, Salesforce