The DOWNLOAD_DOCUMENT action retrieves a signed document from DocuSign and stores it in a content repository.
Use this action after a document has been signed or processed in DocuSign. The action downloads the document associated with a specific DocuSign envelope and saves it to a configured folder location for further processing, archival, or distribution.
The action uses the DocuSign envelopeId to locate the envelope and retrieve the associated document. After the document is downloaded, it is stored in the configured target location and returned as a content object that can be used by subsequent process steps.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| outputFileName | String | Optional | The name of the downloaded file. Example: invoice.pdf. |
| envelopeId | Yes | Required | The DocuSign envelope identifier (UUID) associated with the document to download. |
| targetFolder | Content | Requires one | A folder variable used to store the downloaded document. Either targetFolder or targetFolderPath must be specified. |
| targetFolderId | String | Optional | The identifier of the destination folder in the content repository. |
| targetFolderPath | String | Requires one |
The destination folder path where the document will be stored. For example, a location path of /app:company_home/app:user_homes/cm:hruser or a relative path of /User Homes/hruser Either targetFolder or targetFolderPath must be specified. |
| targetFileType | String | Optional | The content type assigned to the downloaded document. Example: fin:invoice. |
| targetFileMetadata | Content-Metadata | Optional | Metadata that will be applied to the downloaded document in the content repository. |
The output parameters of the action are:
| Parameter | Type | Description |
|---|---|---|
| file | Content | The downloaded document stored in the content repository. This output can be used by subsequent process steps. |
No exceptions or errors are thrown by the connector, however all exceptions are caught and logged. The task execution is always successful, and errors will be returned in an error event.