user13287829
user13287829

Reputation: 11

Ability to modify template tabs to have values in an envelope when a template is applied to an envelope

I am using docusign APIs to use an existing template when i send an envelope. In the Envelope definition (env), using env.setTemplateId(), i am able to set the template to the envelope. I want to be able to edit the tabs (to make them read-only and populate values) added through the template only in the context of the envelope (without modifying the template). But on trying to retreive the envelope contents, the tabs are not listed as part of the envelope. Any pointers on this? Have seen a few similar questions (Docusign API - prefilling tab values on envelope created from template, Docusign API - prefilling tab values on envelope created from template), but no concrete solution yet.

Upvotes: 1

Views: 69

Answers (1)

Inbar Gazit
Inbar Gazit

Reputation: 14005

By default GET on an envelope would not retrieve the tabs. You can do that by making this API call:

GET /restapi/v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}/tabs

Which requires that you know the documentID.

If you are using one of our SDKs, you can see code examples that do just that here:

https://developers.docusign.com/esign-rest-api/code-examples/set-template-tab-values

Upvotes: 1

Related Questions