Hi everyone,
I'm working on a DocuSign integration where I want to use a template that dynamically updates as it progresses through a multi-signer workflow. Here’s the flow I’m trying to achieve:
- The initial template is populated with some hardcoded values for the first signer.
- Once the first signer completes and the envelope is redirected to the next signer, the template should dynamically update certain fields (e.g., names, amounts, or other placeholders) using data retrieved from an Azure Storage Account via API.
- This process should repeat for each signer, with the template being updated dynamically based on the signer’s role and data pulled from Azure.
Steps I’ve Considered:
- Use the DocuSign API to create an envelope based on a pre-defined template.
- Populate initial tabs (fields) using the API (e.g., using
templateRoles
). - Trigger a webhook or callback (via Connect) after each signer to:
- Retrieve data from an Azure Blob or Table.
- Update the envelope fields dynamically for the next signer using
PUT
Envelope Update API.
- Continue until all signers have completed the workflow.
Challenges/Questions:
- Is it possible to update envelope fields dynamically after each signer completes, without canceling or re-sending the envelope?
- Can data be pulled directly from Azure Blob Storage or any external API and injected into the envelope during the workflow?
- Are there any best practices for setting up such a dynamic workflow using DocuSign templates?
- How do I configure Connect to ensure I get notified after each signer completes?
Tech Stack:
- Backend: Python (Azure Functions)
- Storage: Azure Blob Storage
- DocuSign Integration: REST API
- Templates: Pre-defined in DocuSign
Objective:
I want to ensure a seamless experience where the same envelope can update its fields dynamically for each signer while pulling new data from Azure at each step.
Any guidance, code samples, or suggestions would be greatly appreciated!