> For the complete documentation index, see [llms.txt](https://docs.advantys.com/workflowgen-administration-module-reference-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.advantys.com/workflowgen-administration-module-reference-guide/workflow-applications/docaposte/docapostecheck-workflow-application.md). Agents can also search and read this documentation through its [MCP server](https://docs.advantys.com/workflowgen-administration-module-reference-guide/~gitbook/mcp).

# DOCAPOSTECHECK

## Overview

The **DOCAPOSTECHECK** workflow application lets you check the status of a transaction and download the associated files.

## How it works

* You can check the status of a transaction and download the file from Docaposte.<br>
* Application logs are available. These can be specified by setting the value of the `DocaposteCheckLogLevel` parameter in the `web.config` file to `0` to disable logging, `1` for error logs, `2` for information logs, or `3` for debug logs; The default value is `0`.

## Required parameter

<table data-header-hidden><thead><tr><th valign="top">Parameter</th><th valign="top">Type</th><th valign="top">Direction</th><th valign="top">Description</th></tr></thead><tbody><tr><td valign="top"><strong>Parameter</strong></td><td valign="top"><strong>Type</strong></td><td valign="top"><strong>Direction</strong></td><td valign="top"><strong>Description</strong></td></tr><tr><td valign="top"><code>DOCAPOSTE_TRANSACTION_ID</code></td><td valign="top">TEXT</td><td valign="top">IN</td><td valign="top">ID of the transaction to check</td></tr></tbody></table>

## Optional parameters

### Docaposte configuration

<table data-header-hidden><thead><tr><th valign="top">Parameters</th><th valign="top">Type</th><th valign="top">Direction</th><th valign="top">Description</th></tr></thead><tbody><tr><td valign="top"><strong>Parameters</strong></td><td valign="top"><strong>Type</strong></td><td valign="top"><strong>Direction</strong></td><td valign="top"><strong>Description</strong></td></tr><tr><td valign="top"><code>DOCAPOSTE_USERNAME</code></td><td valign="top">TEXT</td><td valign="top">IN</td><td valign="top">Docaposte username<br><br>By default, this value comes from the <code>DocaposteUsername</code> parameter in the <code>web.config</code> file.</td></tr><tr><td valign="top"><code>DOCAPOSTE_PASSWORD</code></td><td valign="top">TEXT</td><td valign="top">IN</td><td valign="top">Docaposte password<br><br>By default, this value comes from the <code>DocapostePassword</code> parameter in the <code>web.config</code> file.</td></tr><tr><td valign="top"><code>DOCAPOSTE_HOST_SERVER</code></td><td valign="top">TEXT</td><td valign="top">IN</td><td valign="top"><p>Docaposte host server</p><p></p><p>By default, this value comes from the <code>DocaposteHostServer</code> parameter in the <code>web.config</code> file.</p></td></tr></tbody></table>

### General

<table data-header-hidden><thead><tr><th valign="top">Parameters</th><th valign="top">Type</th><th valign="top">Direction</th><th valign="top">Description</th></tr></thead><tbody><tr><td valign="top"><strong>Parameters</strong></td><td valign="top"><strong>Type</strong></td><td valign="top"><strong>Direction</strong></td><td valign="top"><strong>Description</strong></td></tr><tr><td valign="top"><code>DOCAPOSTE_DOCUMENT_NAMES</code></td><td valign="top">TEXT</td><td valign="top">IN</td><td valign="top">Name(s) of the document(s) sent for signature(s)</td></tr><tr><td valign="top"><code>DOCAPOSTE_DOCUMENTx</code></td><td valign="top">FILE</td><td valign="top">OUT</td><td valign="top">Signed document(s), where <code>x</code> is the document number</td></tr><tr><td valign="top"><code>DOCAPOSTE_STATUS</code></td><td valign="top">TEXT</td><td valign="top">OUT</td><td valign="top">Transaction status</td></tr></tbody></table>

## Example with DOCAPOSTESEND

In the following example, the DOCAPOSTESEND action is directly followed by the DOCAPOSTCHECK action. This action will loop back onto itself until the status is other than `OPEN`.

If the returned status meets the condition, the document will be downloaded from Docaposte.

<div align="left"><img src="https://content.gitbook.com/content/imiOCeaawutpXkzp4fhb/blobs/Ujpu15PDLll60tEK9173/image.png" alt=""></div>

With the system loop action function, the DOCAPOSTECHECK action will be executed every `x` seconds until the OUT condition is met.

<div align="left"><img src="https://content.gitbook.com/content/imiOCeaawutpXkzp4fhb/blobs/63NWI4XwuBuFzxI9VhKf/image.png" alt=""></div>
