DocuSign Event
Overview
The DocuSign event allows data to be collected in a SmartIQ form/PDF document and sent to DocuSign for signatures.
The External State is the state wherein SmartIQ waits for the signature process to complete and DocuSign sends the result back to SmartIQ so the workflow can be continued or finalized. The process relies on Cloud to Cloud (C2I) integration between the two platforms.
DocuSign Integration
The individual workflow states and components are configured on the SmartIQ Design workflow canvas. A basic DocuSign integration requires the following components:
- A Start state for collecting data to generate a PDF document.
- A DocuSign Create Envelope action that passes the generated PDF payload to DocuSign (automatically added when a transition is created to the external state).
- A DocuSign Event where the SmartIQ workflow will wait while the DocuSign Signature Process takes place and continue the workflow once the result is received from DocuSign.
Additionally, when a workflow transition is moving to a DocuSign External State, the Action responsible for creating the DocuSign Envelope will ensure that the “envelopeId” is coupled with the workflow and wait for the DocuSign response.
Setup and Prerequisites
To set up SmartIQ and DocuSign C2I integration:
- Configure Manage settings in SmartIQ to be able to send the data to DocuSign.
- Create a DocuSign Service Account specifically for DocuSign.
- Set up DocuSign Connect to ensure that SmartIQ receives authenticated and validated messages.
DocuSign Service Account
Create a SmartIQ user account that will be used exclusively by DocuSign. Ensure that this account has the correct permissions to access forms adding it to the appropriate SmartIQ groups and that Impersonate Users permission is enabled to enable preparing forms on behalf other users.
- Go to Manage > Roles > New Role and create a new DocuSign role.
- Role Name: DocuSign
- Permission: Impersonate Users
- Click Save.
- Go to Manage > Users > New User and create a new DocuSign user. For example, Docusign Service User.
- Click Save.
- Click Security and select the relevant Groups to ensure the service account has access to all relevant forms and that the new docusign role is selected.
- Click Save.
Enable DocuSign Connect
Set up DocuSign Connect to send real-time updates to SmartIQ via webhooks with the following configuration:
Custom Configuration | Setting |
---|---|
Name | SmartIQ |
URL to Publish | <https://{{yourServer}}/Produce/Webhooks/DocuSign > |
Trigger Events | envelope-completed envelope-declined envelope-voided envelope-deleted envelope-discard |
Include Basic Authentication Header | DocuSign service account name and password |
Usage
- Drag and drop an Event state onto the workflow canvas.
- Select DocuSign from the External Event Type drop-down list.
- Click OK.
- Add a transition to the Event state. An action suitable for notifying the cloud system will automatically be added to any inbound transitions to the state.
- Configure the DocuSign actions to suit the workflow.
- Add the document to the Action Documents tab.
- (Optional) Add conditional outbound transition(s) based upon the result of the external event. For example, a workflow can proceed to the Finish state only when the external system triggers an “envelope-completed” event.
You can add conditional outbound transition(s) based on the result of the following external events:
External Event | Description |
---|---|
envelope-completed | The envelope has been completed by all the recipients. |
envelope-declined | The envelope has been declined by one of the recipients. |
envelope-voided | The envelope has been voided by the sender or has expired. The void reason indicates whether the envelope was manually voided or expired. |
envelope-deleted | This event is sent after an already-sent envelope is deleted within the web application. |
envelope-discard | Sent when an envelope in a created or draft state is deleted within the web application or discarded within the tagging UI. |
- Save your project.
Updated 9 months ago