0

I am attempting to request signature via a template and prefill some data fields using RESTAPI. The only unsuccessful part of my quest is setting the data field value(s). The envelope with document is sent with only the standard tags and their respective values.

Need some insight.

XML Body...

<envelopeDefinition xmlns="http://www.docusign.com/restapi">
   <accountId><%= _accountID %></accountId>
   <emailSubject>DocuSign API - Request Template</emailSubject>
   <status>sent</status>
   <emailSubject>API Call for request from template</emailSubject>
   <emailBlurb>This comes from me</emailBlurb>
   <templateId><%= _templateID %></templateId>
   <templateRoles>
      <email>me@me.com</email>
      <name>Dean</name>
      <roleName>Signer</roleName>
      <recipientId>1</recipientId>
      <tabs>
         <textTabs>
            <tabLabel>CompanyName</tabLabel>
            <value>Dean Inc</value>
         </textTabs>
      </tabs>
   </templateRoles>
</envelopeDefinition>
user3447048
  • 1
  • 1
  • 3
  • I am having the same issue. Were you able to figure out what was going wrong? I am able to make the calls with the data fields filling in properly with this page: http://iodocs.docusign.com/?version=v2. However, the same calls aren't working from my code. – Travis P Sep 23 '14 at 17:01

1 Answers1

1

I know this is old and abandoned but I wanted to answer in case someone else stumbles across it. I ended up finding a very similar question here: How to pre-fill tabs on a server template with the DocuSign API. The solution is to add another node in <textTabs> called <text> like the following:

...
<tabs>
  <textTabs>
    <text>
      <tabLabel>CompanyName</tabLabel>
      <value>Dean Inc</value>
    </text>
  </textTabs>
</tabs>
...
Community
  • 1
  • 1
Travis P
  • 125
  • 1
  • 2
  • 6