Workflow Soluiton

 View Only
  • 1.  Assign to Queue and User

    Posted May 20, 2014 09:06 AM

    This is the second part of a two-part question. I broke them apart to help people feel they can answer one piece and not the other.

     

    What I am looking to do is to enumerate the members of a specific queue and then populate a drop-down list with those members on a webform (my previous question), once I have those users I can then get their attributes and use those to assign an incident to a user. At least that's what I had working in 7.1. The problem now is, how do I assign an incident to a queue (I know how to do that one) AND a specific user? I need the ability to do both for the workflow that I'm working on now.

    If I can figure at least this part out, I can statically create a list (not ideal) if I have to just to get by for now.



  • 2.  RE: Assign to Queue and User
    Best Answer

    Posted May 20, 2014 03:56 PM

    After populating the drop-down as I mentioned in step 1 of your question, you can use the User value to populate a task assignment.  In the dialog workflow component, the "person assignments" on the Assignments tab can be used to assign a task to the user.  Use the PrimaryEmail column for this value.  If you're trying to add a task assignment after the fact, you can use an "Add Task Assignment" component and select "dynamic value".  Map in the ReferenceID (UserID), ReferenceName (PrimaryEmail), ReferenceType (right-click and select Create Constant, then double-click the mapping arrow and select User), and TaskID (this will be the task ID to which you are adding an assignment - if you're adding this inside a Dialog Workflow component, it will be the workflowTaskId variable).  Again, send me a PM if you want me to assist with a quick webex.

    EDIT: I should point out as well that the assignment doesn't actually happen to a queue, it happens to groups in that queue.  So when an assignment targets a "queue", the queue is fetched, the member groups of that queue is fetched, and each group is targeted then for assignment.  The "queue" is essentially just a container for those groups.  The queue name, ID, and type does save to columns in the IMIncidentTicket table though for reference.

    -africo



  • 3.  RE: Assign to Queue and User

    Posted May 27, 2014 10:40 AM

    All set now. Simply assigning the PrimaryEmail from the technician to the Owner field in the Incident data type worked like a charm.