# How to download a file data of a specific request or action from a WorkflowGen URL

**URL:** <https://discuss.workflowgen.com/t/how-to-download-a-file-data-of-a-specific-request-or-action-from-a-workflowgen-url/731>\
**Category:** Development\
**Created:** [March 20, 2017, 8:12pm UTC](https://discuss.workflowgen.com/t/how-to-download-a-file-data-of-a-specific-request-or-action-from-a-workflowgen-url/731 "2017-03-20T20:12:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [March 20, 2017, 8:12pm UTC](https://discuss.workflowgen.com/t/how-to-download-a-file-data-of-a-specific-request-or-action-from-a-workflowgen-url/731/1 "2017-03-20T20:12:09Z")

</div>

## Utility

Here are 3 sample queries with different scenarios that will retrieve the form\_archive of a specific request and **optionally** a specific activity instance:

1. Downloads the latest form archive of request #5224  
[http://localhost/wfgen/show.aspx?QUERY=DOWNLOAD&DATA\_NAME=FORM\_ARCHIVE&ID\_PROCESS\_INST=5224](http://localhost/wfgen/show.aspx?QUERY=DOWNLOAD&DATA_NAME=FORM_ARCHIVE&ID_PROCESS_INST=5224)

2. Downloads the form archive of the first action of request #5224  
[http://localhost/wfgen/show.aspx?QUERY=DOWNLOAD&DATA\_NAME=FORM\_ARCHIVE&ID\_PROCESS\_INST=5224&ID\_ACTIVITY\_INST=1](http://localhost/wfgen/show.aspx?QUERY=DOWNLOAD&DATA_NAME=FORM_ARCHIVE&ID_PROCESS_INST=5224&ID_ACTIVITY_INST=1)

3. Downloads the form archive of the second action of request #5224  
[http://localhost/wfgen/show.aspx?QUERY=DOWNLOAD&DATA\_NAME=FORM\_ARCHIVE&ID\_PROCESS\_INST=5224&ID\_ACTIVITY\_INST=2](http://localhost/wfgen/show.aspx?QUERY=DOWNLOAD&DATA_NAME=FORM_ARCHIVE&ID_PROCESS_INST=5224&ID_ACTIVITY_INST=2)

**NOTE** :  
For option 2 and 3, **“Archive action associated data”** must be enabled in order to archive each activity instance.

The value parameter of **DATA\_NAME** can be changed in order to retrieve another file data (Eg. value FORM\_DATA will return the form\_data file)

## Security

WorkflowGen will check the security if the user have access to the form archive of the specific request using this URL

---

<div class="post-metadata">

**Author:** ![ParadimeWeb](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@ParadimeWeb](https://discuss.workflowgen.com/u/ParadimeWeb)\
**Post date:** [April 2, 2019, 6:40am UTC](https://discuss.workflowgen.com/t/how-to-download-a-file-data-of-a-specific-request-or-action-from-a-workflowgen-url/731/2 "2019-04-02T06:40:20Z")

</div>

I have “Archive action associated data” disabled and I can still get the form archive of previous actions. Why is that? My process’s state is “In test”… Is that why?

---

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [April 2, 2019, 1:54pm UTC](https://discuss.workflowgen.com/t/how-to-download-a-file-data-of-a-specific-request-or-action-from-a-workflowgen-url/731/3 "2019-04-02T13:54:05Z")

</div>

Hi @ParadimeWeb,

It’s only when the request is completed (closed or cancelled) that the system archives action associated data. Is that also the case with you?

Regards,  
Eddy.

---

<div class="post-metadata">

**Author:** ![ParadimeWeb](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@ParadimeWeb](https://discuss.workflowgen.com/u/ParadimeWeb)\
**Post date:** [April 3, 2019, 3:57am UTC](https://discuss.workflowgen.com/t/how-to-download-a-file-data-of-a-specific-request-or-action-from-a-workflowgen-url/731/4 "2019-04-03T03:57:21Z")

</div>

Thanks @eddy.daouk,

That is exactly the case for me too. Only when a request is completed will the system archive the action associated data. That’s good to know.

---

<div class="post-metadata">

**Author:** ![ParadimeWeb](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@ParadimeWeb](https://discuss.workflowgen.com/u/ParadimeWeb)\
**Post date:** [July 7, 2021, 8:43pm UTC](https://discuss.workflowgen.com/t/how-to-download-a-file-data-of-a-specific-request-or-action-from-a-workflowgen-url/731/5 "2021-07-07T20:43:21Z")

</div>

I am getting unauthorized when I try to use these URLs with a delegated user. WorkflowGen does not check if the user is a delegated user?

It should do the check without me having to add the parameter, ID\_USER\_DELEGATOR, to the URL.

In some scenarios, I don’t have the ID of the DELEGATOR. Why can’t WorkflowGen check for this automatically?

Thanks,  
Gabriel
