# Query the current allocation of employees

**URL:** <https://discuss.workflowgen.com/t/query-the-current-allocation-of-employees/2097>\
**Category:** General WorkflowGen Discussion\
**Created:** [October 17, 2022, 5:44am UTC](https://discuss.workflowgen.com/t/query-the-current-allocation-of-employees/2097 "2022-10-17T05:44:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zoie](https://avatars.discourse-cdn.com/v4/letter/z/958977/32.png) [@Zoie](https://discuss.workflowgen.com/u/Zoie)\
**Post date:** [October 17, 2022, 5:44am UTC](https://discuss.workflowgen.com/t/query-the-current-allocation-of-employees/2097/1 "2022-10-17T05:44:24Z")

</div>

How to query the currently assigned action of an employee

---

<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:** [October 18, 2022, 8:26pm UTC](https://discuss.workflowgen.com/t/query-the-current-allocation-of-employees/2097/2 "2022-10-18T20:26:39Z")

</div>

Hi @Zoie ,

You can use Macros to fetch the current assigned user.  
You can find those in the Mapping section in the form designer or in the action parameters:  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/30774fcaec8cb321c5aa5f722d3f5f28d6359acc.png)

Cheers,  
Eddy.

---

<div class="post-metadata">

**Author:** ![Zoie](https://avatars.discourse-cdn.com/v4/letter/z/958977/32.png) [@Zoie](https://discuss.workflowgen.com/u/Zoie)\
**Post date:** [October 19, 2022, 1:14am UTC](https://discuss.workflowgen.com/t/query-the-current-allocation-of-employees/2097/3 "2022-10-19T01:14:31Z")

</div>

Hi,

Thanks for your reply.  
Actually, when an employee leaves, how we can query the approval previously assigned to him? Because some approval maybe stopped in that step. So how we can check the whole approval that assigned to some people, then can have next action to follow that WFG.

B.R  
Zoie

---

<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:** [October 20, 2022, 3:46pm UTC](https://discuss.workflowgen.com/t/query-the-current-allocation-of-employees/2097/4 "2022-10-20T15:46:13Z")

</div>

Hi Zoie,

You don’t need to worry about querying requests assigned to a member that left the organization. You can use the replace feature and all actions will be automatically re-assigned to the new user:

> **[Users | WorkflowGen Documentation](https://docs.workflowgen.com/admin/user-management/users#replacing-users)**

Cheers,  
Eddy.

---

<div class="post-metadata">

**Author:** ![Zoie](https://avatars.discourse-cdn.com/v4/letter/z/958977/32.png) [@Zoie](https://discuss.workflowgen.com/u/Zoie)\
**Post date:** [October 28, 2022, 12:49am UTC](https://discuss.workflowgen.com/t/query-the-current-allocation-of-employees/2097/5 "2022-10-28T00:49:04Z")

</div>

Hi Eddy.daouk,

Thanks for your reply！！

B.R  
Zoie
