# Web service: How to get associated data of a request and download the associated attachments

**URL:** <https://discuss.workflowgen.com/t/web-service-how-to-get-associated-data-of-a-request-and-download-the-associated-attachments/309>\
**Category:** Web API\
**Created:** [July 20, 2013, 10:07pm UTC](https://discuss.workflowgen.com/t/web-service-how-to-get-associated-data-of-a-request-and-download-the-associated-attachments/309 "2013-07-20T22:07:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wfg-admin](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/wfg-admin/32/714_2.png) [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Post date:** [July 20, 2013, 10:07pm UTC](https://discuss.workflowgen.com/t/web-service-how-to-get-associated-data-of-a-request-and-download-the-associated-attachments/309/1 "2013-07-20T22:07:54Z")

</div>

If you are a process supervisor, manager, or administrator, you can use the web API to get information on a specific request using the URLs below. These examples use request `17`.

**If request #17 is still ongoing:**

```auto
http://mywebserver/wfgen/ws/processesruntime.asmx/GetProcessInstanceList?query=supervisedinprogress&ProcessInstanceId=17&Template=ProcessesRuntime.ProcessInstanceListRss.txt

```

**If request #17 is closed:**

```auto
http://mywebserver/wfgen/ws/processesruntime.asmx/GetProcessInstanceList?query=supervisedclosed&ProcessInstanceId=17&Template=ProcessesRuntime.ProcessInstanceListRss.txt

```

Inside the retrieved XML output (RSS, XML, or ATOM depending on the template you are using; see `\wfgen\ws\App_Data` for the templates), you will see a specific URL for each data file, which you can download using an HTTP GET/POST or an AJAX call from your web form.

### Example

```auto
<wfg:processInstanceRelData>
    <FORM_HTML description="Form" dataType="FILE" fileName="3429158-1.html" fileContentType="text/html" fileSize="9236″>http://mywebserver/wfgen/show.aspx?QUERY=DATASET_FILE_DOWNLOAD&ID_PROCESS=206&ID_RELDATA=2812&ID_DATASET=3429162&NUM_VALUE=1&NO_CHARSET=Y&NO_REDIRECTION=Y</FORM_HTML>
    <FORM_DATA description="Form data" dataType="FILE" fileName="dataOUT.xml" fileContentType="application/xml" fileSize="3646″>http://mywebserver/wfgen/show.aspx?QUERY=DATASET_FILE_DOWNLOAD&ID_PROCESS=206&ID_RELDATA=2813&ID_DATASET=3429163&NUM_VALUE=1&NO_CHARSET=Y&NO_REDIRECTION=Y</FORM_DATA>
    <FORM_ARCHIVE description="Form archive" dataType="FILE" fileName="form_archive.htm" fileContentType="application/octet-stream" fileSize="17805″>http://mywebserver/wfgen/show.aspx?QUERY=DATASET_FILE_DOWNLOAD&ID_PROCESS=206&ID_RELDATA=2814&ID_DATASET=3429164&NUM_VALUE=1&NO_CHARSET=Y&NO_REDIRECTION=Y</FORM_ARCHIVE>
    <FORM_DRAFT description="Form draft" dataType="TEXT" fileName="" fileContentType="" fileSize="">N</FORM_DRAFT>
</wfg:processInstanceRelData>

```
