Docusign Connect

Author: Accord Project

docusign-connect@0.11.0 Contract ^0.26.0 8eda3a0ae5d771f51d43d3afa587c8eddfa7297f4ff7cb63ee99a9f05d6458dd

Counts events from DocuSign connect with a given envelope status.

Download Archive Download Compiled Archive Open in Template Playground Open in VSCode Web

DocuSign Connect

A template that counts events from DocuSign connect with a given envelope status.

Template Text

Count DocuSign connect events with the status: Completed.

Count DocuSign connect events with the status: Completed.
Count DocuSign connect events with the status: {{status}}.
{
  "$class": "org.accordproject.docusignconnect@0.1.0.TemplateModel",
  "status": "Completed",
  "$identifier": "94da90f6-5166-4ba7-8675-e2777407d464",
  "clauseId": "94da90f6-5166-4ba7-8675-e2777407d464"
}

Template Model

namespace org.accordproject.docusignconnect@0.1.0

import org.accordproject.contract@0.2.0.Clause from https://models.accordproject.org/accordproject/contract@0.2.0.cto
import org.accordproject.runtime@0.2.0.{Request,Response} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
import com.docusign.connect@0.4.0.DocuSignEnvelopeInformation from https://models.accordproject.org/docusign/connect@0.4.0.cto
import com.docusign.connect@0.4.0.EnvelopeStatusCode from https://models.accordproject.org/docusign/connect@0.4.0.cto

transaction MyResponse extends Response {
  o String output
  o Integer counter
}

event DocuSignNotificationEvent {
  o String title
  o String message
}

concept DocuSignEnvelopeCounterState identified {
  o Integer counter default=0
}

/**
 * The template model
 */
@template
asset TemplateModel extends Clause {
  /**
   * The status of the envelope to count
   */
  o EnvelopeStatusCode status
}

Model Dependencies

Template Logic

Find the full logic for this template on on GitHub.

State Types

Type Sample JSON
org.accordproject.runtime@0.2.0.State
{
    "$class": "org.accordproject.runtime@0.2.0.State",
    "$identifier": "788f9390-50a4-11f1-a498-6b6dff021a96"
}

Request Types

Type Sample JSON
com.docusign.connect@0.4.0.DocuSignEnvelopeInformation
{
    "$class": "com.docusign.connect@0.4.0.DocuSignEnvelopeInformation",
    "envelopeStatus": {
        "$class": "com.docusign.connect@0.4.0.EnvelopeStatus",
        "status": "Signed",
        "envelopeId": "Pariatur consectetur.",
        "created": "2026-05-15T21:24:35.271Z",
        "sent": "2026-05-15T21:24:35.271Z",
        "delivered": "2026-05-15T21:24:35.271Z",
        "signed": "2026-05-15T21:24:35.271Z",
        "completed": "2026-05-15T21:24:35.271Z",
        "declined": "2026-05-15T21:24:35.271Z",
        "email": "Amet."
    },
    "recipients": [
        {
            "$class": "com.docusign.connect@0.4.0.Recipient",
            "status": "Signed",
            "email": "Dolore labore aliqua est.",
            "userName": "Adipisicing nisi amet mollit et.",
            "sent": "2026-05-15T21:24:35.271Z",
            "delivered": "2026-05-15T21:24:35.271Z",
            "signed": "2026-05-15T21:24:35.271Z",
            "declined": "2026-05-15T21:24:35.271Z",
            "declineReason": "In consequat.",
            "tabStatuses": [
                {
                    "$class": "com.docusign.connect@0.4.0.NumberTabStatus",
                    "tabName": "Fugiat cupidatat.",
                    "tabValue": 55.261,
                    "tabType": "LastName",
                    "status": "Id consequat magna laborum.",
                    "tabLabel": "Culpa aliquip esse cupidatat magna.",
                    "originalValue": "Voluptate amet sint amet commodo.",
                    "signed": "2026-05-15T21:24:35.271Z",
                    "customTabType": "Number"
                }
            ]
        }
    ],
    "customFields": [
        {
            "$class": "com.docusign.connect@0.4.0.CustomField",
            "name": "Non aliquip qui consequat.",
            "value": "Ut minim labore est laborum."
        }
    ],
    "attachments": [
        {
            "$class": "com.docusign.connect@0.4.0.Attachment",
            "docType": "CertificateOfCompletion",
            "identifier": "6077",
            "name": "Quis eiusmod aliqua et ut.",
            "mimeType": "Mollit cillum reprehenderit nisi.",
            "encoding": "base64",
            "$identifier": "6077"
        }
    ],
    "$timestamp": "2026-05-15T21:24:35.271Z"
}
org.accordproject.runtime@0.2.0.Request
{
    "$class": "org.accordproject.runtime@0.2.0.Request",
    "$timestamp": "2026-05-15T21:24:35.270Z"
}

Response Types

Type Sample JSON
org.accordproject.docusignconnect@0.1.0.MyResponse
{
    "$class": "org.accordproject.docusignconnect@0.1.0.MyResponse",
    "output": "Irure id.",
    "counter": 24698,
    "$timestamp": "2026-05-15T21:24:35.273Z"
}
org.accordproject.runtime@0.2.0.Response
{
    "$class": "org.accordproject.runtime@0.2.0.Response",
    "$timestamp": "2026-05-15T21:24:35.273Z"
}

Events Types

Type Sample JSON

Technical Integration

Please refer to the Accord Project documentation for how to use a template or integrate it within your application.

View the Latest code for this template on GitHub.