简体   繁体   中英

Docusign Api: Why can't I select the template to send the envelope with?

I have a problem sending envelopes with DocuSign. I specify the templateId that I want to use (lets say, template 2) with the envelope, but the recipient keeps getting template 1 instead of template 2 or template 3.

Here is my JSON object:

    {
  "emailSubject": "Test Email",
  "emailBlurb": "This is for testing docusign api",
  "templateId": "{2}",
  "templateRoles": [
    {
      "email": "email",
      "name": "Shawn Williams",
      "roleName": "Signee",
      "tabs": {
        "fullNameTabs": [
          {
            "tabLabel": "Name 67755b0d-2284-.....id",
            "value": "Shawn Williams"
          }
        ],
        "companyTabs": [
          {
            "tabLabel": "Company f9d5d265-9d97-....id",
            "value": "SDD"
          }
        ],
        "titleTabs": [
          {
            "tabLabel": "Title 35713ae4-3330-4....id",
            "value": "MR"
          }
        ],
        "ssnTabs": [
          {
            "tabLabel": "SSN",
            "value": "123456789"
          }
        ],
        "firstNameTabs": [
          {
            "tabLabel": "F_Name",
            "value": "Shawn"
          }
        ],
        "lastNameTabs": [
          {
            "tabLabel": "L_Name",
            "value": ""
          }
        ],
        "emailAddressTabs": [
          {
            "tabLabel": "Email",
            "value": "swi"
          }
        ]
      }
    }
  ],
  "transactionId": "test-2-id",
  "status": "sent"
}

I would really appreciate some help; I have been working on this for 3 days now.

Edit: I send a post to '/envelopes' and my account is in the demo stage right now in case that is important.

I'm using template Ids: 66b9f112-d135-4e74-9a30-1c0a2333ae5b, and cf5a9348-0d05-44ab-b0ac-8847303aa0ba. They are purely for testing reasons and have different fields attached.

You are specifying the transactionId in your CreateEnvelope request. This is preventing from a new envelope being sent using the new template.

Remove the property "transactionId": "test-2-id" and your envelope should be sent with the new template. Or use a new value for the transaction Id property for each envelope.

From Documentation : (expand the envelopeDefinition property)

transactionId : Used to identify an envelope. The id is a sender-generated value and is valid in the DocuSign system for 7 days. It is recommended that a transaction ID is used for offline signing to ensure that an envelope is not sent multiple times . The transactionId property can be used determine an envelope's status (ie was it created or not) in cases where the internet connection was lost before the envelope status was returned.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM