# How to get current request status before process end

**URL:** https://discuss.workflowgen.com/t/how-to-get-current-request-status-before-process-end/1785
**Category:** Form Designer
**Created:** [January 6, 2021, 3:57pm UTC](https://discuss.workflowgen.com/t/how-to-get-current-request-status-before-process-end/1785 "2021-01-06T15:57:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Kinjal](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@Kinjal](https://discuss.workflowgen.com/u/Kinjal)
#### Post date: [January 6, 2021, 3:57pm UTC](https://discuss.workflowgen.com/t/how-to-get-current-request-status-before-process-end/1785/1 "2021-01-06T15:57:00Z")

</div>

Hi Team,

Before process ends I want to update the current request status in Database in both cases whether it goes for refferal or not. (using XMLTODATABASE)

How can I get current request status for update query? for eg: Open,Closed,Reffered.

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

Thanks,  
Kinjal Modi

---

<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: [January 14, 2021, 11:50pm UTC](https://discuss.workflowgen.com/t/how-to-get-current-request-status-before-process-end/1785/2 "2021-01-14T23:50:32Z")

</div>

Hi Kinjal,

Are you talking about the actual request status which can be either open or closed? (there is no referred status)  
Or is it a status data that is created just for this process?

If it’s about the request status, the only value can be OPEN. The request won’t be able to export the data if it is closed, so there is no need to retrieve that value because it will only return OPEN when you’re able to export the value.

Regards,  
Eddy.
