# Assigning multiple requests to a user

**URL:** https://discuss.workflowgen.com/t/assigning-multiple-requests-to-a-user/1047
**Category:** General WorkflowGen Discussion
**Created:** [May 14, 2018, 1:59pm UTC](https://discuss.workflowgen.com/t/assigning-multiple-requests-to-a-user/1047 "2018-05-14T13:59:39Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![cwallander](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@cwallander](https://discuss.workflowgen.com/u/cwallander)
#### Post date: [May 14, 2018, 1:59pm UTC](https://discuss.workflowgen.com/t/assigning-multiple-requests-to-a-user/1047/1 "2018-05-14T13:59:39Z")

</div>

Is there a way to assign multiple requests to a user?  
We have a group with a view of all their requests and they would like to select a group of 10 or 20 requests and assign them to a user to work on at one time.  
Is there already functionality for this or would this take some custom design work?

---

<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: [May 14, 2018, 6:44pm UTC](https://discuss.workflowgen.com/t/assigning-multiple-requests-to-a-user/1047/2 "2018-05-14T18:44:57Z")

</div>

Hi Claude,

This feature is not available in WorkflowGen.  
Like you said, a custom solution can be implemented using either the SOAP API or GraphQL.

Regards,  
Eddy.

---

<div class="post-metadata">

### Author: ![cwallander](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@cwallander](https://discuss.workflowgen.com/u/cwallander)
#### Post date: [May 14, 2018, 7:16pm UTC](https://discuss.workflowgen.com/t/assigning-multiple-requests-to-a-user/1047/3 "2018-05-14T19:16:11Z")

</div>

Eddy,

Can you point me to the documentation for either of those and any examples?

Thanks,  
Claude

---

<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: [May 14, 2018, 8:00pm UTC](https://discuss.workflowgen.com/t/assigning-multiple-requests-to-a-user/1047/4 "2018-05-14T20:00:08Z")

</div>

Hi Claude,

Using the API:

- To see whether you can assign an action or not before assigning it, use the method [CanAssignActivityInstance](http://docs.workflowgen.com/v710/api/html/6c4357fb-7e5a-ea24-1cde-a5fa229455db.htm)

- To assign the activity, use the method [AssignActivityInstance](http://docs.workflowgen.com/v710/api/html/cb024dd4-bd4d-7236-3cab-205e6cef662c.htm)

Using GraphQL:

The following example assigns request number 1234, action number 2 to User 5678.  
5678 represents the **user identifier** of the person assigned to the action.

Finally, the returned value will be the username of the person assigned to the action.

```auto
mutation{
  assignAction(input: {requestNumber:1234, number:2 assigneeId:"5678"}){
    action{
      assignee{
        userName
      }
    }
  }
}

```

Regards,  
Eddy.

---

<div class="post-metadata">

### Author: ![cwallander](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@cwallander](https://discuss.workflowgen.com/u/cwallander)
#### Post date: [May 21, 2018, 5:55pm UTC](https://discuss.workflowgen.com/t/assigning-multiple-requests-to-a-user/1047/5 "2018-05-21T17:55:18Z")

</div>

Eddy,

Is there an api for getting a view?  
I will have the view name and would like to get the listing of what is in the view.

Thanks,  
Claude

---

<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: [May 25, 2018, 8:28pm UTC](https://discuss.workflowgen.com/t/assigning-multiple-requests-to-a-user/1047/6 "2018-05-25T20:28:45Z")

</div>

Hi Claude,

Yes, you can retrieve the desired views using the method GetViewList:  
[http://docs.workflowgen.com/v710/api/html/ee2b2dd6-32a7-66f8-72c5-f4b6f278ce55.htm](http://docs.workflowgen.com/v710/api/html/ee2b2dd6-32a7-66f8-72c5-f4b6f278ce55.htm)

Regards,  
Eddy.

---

<div class="post-metadata">

### Author: ![Aud888](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@Aud888](https://discuss.workflowgen.com/u/Aud888)
#### Post date: [June 17, 2020, 12:11am UTC](https://discuss.workflowgen.com/t/assigning-multiple-requests-to-a-user/1047/7 "2020-06-17T00:11:28Z")

</div>

Hi,  
Sorry, newbie question. Tried the above mutation ( I am using WFG 7.11.0 ) , but it returned error “The ID is invalid”. May I know is the assigneeID = WFG UserID ? Or where can I get the assigneeID if it is not WFGEN.USER.ID\_USER ?

---

<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: [June 17, 2020, 2:58pm UTC](https://discuss.workflowgen.com/t/assigning-multiple-requests-to-a-user/1047/8 "2020-06-17T14:58:18Z")

</div>

Hi @Aud888,

Good question.  
The ID is not the User ID in the database but a reference ID only used in GraphQL.

You can retrieve the ID using the following query:

```auto
{
  user(userName:"username"){
    id
  }
}

```

And then you can make another call to assign the action to that user.

Regards,  
Eddy.

---

<div class="post-metadata">

### Author: ![Aud888](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@Aud888](https://discuss.workflowgen.com/u/Aud888)
#### Post date: [June 18, 2020, 10:39am UTC](https://discuss.workflowgen.com/t/assigning-multiple-requests-to-a-user/1047/9 "2020-06-18T10:39:43Z")

</div>

Hi Eddy,  
Thank you. Got it !!! 😌

Regards,  
Audrey
