title: DocuSign: How do I send the values of the Document Custom Fields (aka tab definitions) while creating an envelope?
body: <p>I need some help to identify how to send Document Custom Fields' values at the stage of creating an envelope. Below is the workflow:</p>
  
  <ol>
  <li>Create the Document Custom Fields (account specific) with name, type and initial value through API (POST [BaseURI]/tab_definitions)</li>
  <li>Create a template with document through API and place the required Document Custom Fields in the document through DocuSign UI</li>
  <li>Create an envelope and send specific values for the Document Custom Fields through API (POST [BaseURI]/envelopes)</li>
  </ol>
  
  <p>Creating an envelope is working fine referring (<a href="https://developers.docusign.com/esign-rest-api/reference/Envelopes/Envelopes/create" rel="nofollow noreferrer">https://developers.docusign.com/esign-rest-api/reference/Envelopes/Envelopes/create</a>). I have tried sending the values through:</p>
  
  <ul>
  <li>document -> documentFields</li>
  <li>customFields -> textCustomFields</li>
  </ul>
  
  <pre><code>{
      "templateId": "51234567-1244-1234-1234-12345a857203",
      "templateRoles": [
              {
                  "roleName": "Role1",
                  "name": "Jane Doe",
                  "email": "jane@doe.com"
              },
              {
                  "roleName": "Role2",
                  "name": "John Doe",
                  "email": "john@doe.com"
              }
      ],
      "customFields": {
          "textCustomFields": [
              {
                  "name": "Account.Name",
                  "value": "account-name1234"
              },
              {
                  "name": "Candidate.FullName",
                  "value": "candidate-name1234"
              },
              {
                  "name": "Candidate.Mobile",
                  "value": "0412345678"
              }
          ]
      },
      "status": "sent"
  }
  </code></pre>