# Open a WFG approved, by its request number

**URL:** <https://discuss.workflowgen.com/t/open-a-wfg-approved-by-its-request-number/1968>\
**Category:** General WorkflowGen Discussion\
**Created:** [November 12, 2021, 2:47am UTC](https://discuss.workflowgen.com/t/open-a-wfg-approved-by-its-request-number/1968 "2021-11-12T02:47:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hanks\_WANG](https://avatars.discourse-cdn.com/v4/letter/h/9fc348/32.png) [@Hanks\_WANG](https://discuss.workflowgen.com/u/Hanks_WANG)\
**Post date:** [November 12, 2021, 2:47am UTC](https://discuss.workflowgen.com/t/open-a-wfg-approved-by-its-request-number/1968/1 "2021-11-12T02:47:19Z")

</div>

Hello,  
How to open a closed request by its request number?  
I’d like to put a request number(how to set it as a link) from another process, if the user click the request number, open its data page for review the content.

Thanks

---

<div class="post-metadata">

**Author:** ![nvarlet](https://avatars.discourse-cdn.com/v4/letter/n/a8b319/32.png) [@nvarlet](https://discuss.workflowgen.com/u/nvarlet)\
**Post date:** [November 15, 2021, 10:16am UTC](https://discuss.workflowgen.com/t/open-a-wfg-approved-by-its-request-number/1968/2 "2021-11-15T10:16:59Z")

</div>

Hello.

I think this could work :  
https://_ **yourserver** _/wfgen/show.aspx?QUERY=PROCESS\_INSTANCE\_FORM&ID\_PROCESS\_INST= **XXXX**

To open it, I think you must have the correct credential (been declared as superviser in read only mode for example).

Best regards

Best regards

---

<div class="post-metadata">

**Author:** ![Hanks\_WANG](https://avatars.discourse-cdn.com/v4/letter/h/9fc348/32.png) [@Hanks\_WANG](https://discuss.workflowgen.com/u/Hanks_WANG)\
**Post date:** [November 18, 2021, 8:48am UTC](https://discuss.workflowgen.com/t/open-a-wfg-approved-by-its-request-number/1968/3 "2021-11-18T08:48:01Z")

</div>

Hello Nvarlet,  
Thanks very much, I had created a link,  
but I cannot open it for security problem, how to solve it?  
plus, I’d like to open a page same as the Form archive by clicking download a copy.

thanks again.

![image](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/23f365f647193497e3ab416bd7fad65847585ccc.png)

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/4c003deb3a8ac74489cffadb11405b841494b642.png)  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/42f4e53523bef0dfc4ffb9ddbd113e9870e26dd4.png)

---

<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:** [November 23, 2021, 4:49pm UTC](https://discuss.workflowgen.com/t/open-a-wfg-approved-by-its-request-number/1968/4 "2021-11-23T16:49:24Z")

</div>

This is the same issue discussed here:

> [@Who can access FORM\_ARCHIVE of a request?](https://discuss.workflowgen.com/t/who-can-access-form-archive-of-a-request/1973/2):
>
> Hi, I find this to be hard to accomplish. There should be a specific (READ\_ONLY) participant role for this but it does not exist. There is no way to do this 100%. You can add the user in a process supervisor participant, but the link URL will not work for delegated users since you need to add an extra url parameter. The way I got this to work is with a custom Web API call that uses Web Service calls to WorkflowGen to figure out the URL. Hopefully, WorkflowGen will come up with a better solut…

---

<div class="post-metadata">

**Author:** ![Hanks\_WANG](https://avatars.discourse-cdn.com/v4/letter/h/9fc348/32.png) [@Hanks\_WANG](https://discuss.workflowgen.com/u/Hanks_WANG)\
**Post date:** [November 24, 2021, 8:58am UTC](https://discuss.workflowgen.com/t/open-a-wfg-approved-by-its-request-number/1968/5 "2021-11-24T08:58:12Z")

</div>

Thanks,  
I am already the supervisor,  
but I still don’t have authorization to open the request. (_You do not have an authorized participant access to the request #200033_)

**The way I got this to work is with a custom Web API call that uses Web Service calls to WorkflowGen to figure out the URL.**  
Can I have a detailed example?  
thank you in advance.

---

<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:** [November 24, 2021, 4:19pm UTC](https://discuss.workflowgen.com/t/open-a-wfg-approved-by-its-request-number/1968/6 "2021-11-24T16:19:41Z")

</div>

If the user is a supervisor, you need to add the parameter SUPERUSER=Y.

It is hard to figure out if the user has access as a regular user or a supervisor or a delegate.

In my custom code, I use the WorkflowGen web service GetProcessInstanceList.  
[https://docs.workflowgen.com/v806/api/html/df9a8bf6-eceb-619e-c334-8839cbe74ada.htm](https://docs.workflowgen.com/v806/api/html/df9a8bf6-eceb-619e-c334-8839cbe74ada.htm)

You have to figure out which query to execute the method depending on what type of user it is.

If you use the “Search” query, it will return the correct URL if the user has access or is a process supervisor.

If the user is the requester and also a limited supervisor, you need to query “InProgress” if the request if open or “Closed” if the request is closed.

I have a custom SQL query to the database to figure out if I need to set the DelegateUsername in the header of the request.

I hope this helps.

---

<div class="post-metadata">

**Author:** ![jianan.hsu](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/jianan.hsu/32/411_2.png) [@jianan.hsu](https://discuss.workflowgen.com/u/jianan.hsu)\
**Post date:** [November 26, 2021, 11:12pm UTC](https://discuss.workflowgen.com/t/open-a-wfg-approved-by-its-request-number/1968/7 "2021-11-26T23:12:35Z")

</div>

Hello,

Actually, you can use these URLs to open the request follow-up form and file download without worrying the regular user or manager mode (i.e. _SUPERUSER=Y_).

It uses the user’s highest access permissions.

Just make sure your user have the right permission to access the specific request (e.g. performed an action as a requester/actor or is a requester/supervisor/manager/administrator of the request).

#### Request follow-up form without the portal menu

_[https://yourserver/wfgen/show.aspx?QUERY=PROCESS\_INSTANCE\_FORM&QUERY\_FROM=REQUEST\_QUICK\_SEARCH&ID\_PROCESS\_INST=123](https://yourserver/wfgen/show.aspx?QUERY=PROCESS_INSTANCE_FORM&QUERY_FROM=REQUEST_QUICK_SEARCH&ID_PROCESS_INST=123)_

#### Request follow-up form with the portal menu

_[https://yourserver/wfgen/show.aspx?QUERY=CONTEXT&REQUEST\_QUERY=PROCESS\_INSTANCE\_FORM&QUERY\_FROM=REQUEST\_QUICK\_SEARCH&ID\_PROCESS\_INST=123](https://yourserver/wfgen/show.aspx?QUERY=CONTEXT&REQUEST_QUERY=PROCESS_INSTANCE_FORM&QUERY_FROM=REQUEST_QUICK_SEARCH&ID_PROCESS_INST=123)_

See the paragraph **User and supervisor/administrator mode** of this article in the forum: [Direct URL: How to display a request follow-up form](https://discuss.workflowgen.com/t/direct-url-how-to-display-a-request-follow-up-form/435)

#### Attachment file of the request (FORM\_ARCHIVE in the example below)

_[https://yourserver/wfgen/show.aspx?QUERY=DOWNLOAD&DATA\_NAME=FORM\_ARCHIVE&ID\_PROCESS\_INST=123](https://yourserver/wfgen/show.aspx?QUERY=DOWNLOAD&DATA_NAME=FORM_ARCHIVE&ID_PROCESS_INST=123)_

As for the **delegation mode** , it does not handle it automatically. You will still need to pass the additional parameter _ID\_USER\_DELEGATOR=123_ in that case.

Best regards
