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?
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.
Eddy,
Can you point me to the documentation for either of those and any examples?
Thanks,
Claude
Hi Claude,
Using the API:
-
To see whether you can assign an action or not before assigning it, use the method CanAssignActivityInstance
-
To assign the activity, use the method AssignActivityInstance
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.
mutation{
assignAction(input: {requestNumber:1234, number:2 assigneeId:"5678"}){
action{
assignee{
userName
}
}
}
}
Regards,
Eddy.
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
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
Regards,
Eddy.
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 ?
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:
{
user(userName:"username"){
id
}
}
And then you can make another call to assign the action to that user.
Regards,
Eddy.
Hi Eddy,
Thank you. Got it !!!
Regards,
Audrey