ServiceDesk

 View Only
  • 1.  Ticket creation based on email receiver address.

    Posted Mar 14, 2013 11:52 AM

    Hi together

    I would like to do a ticket allocation based on emails.

    Currently I have two mailboxes „SAP@myCompany.com“ and ServiceDesk@myCompany.com. Those two were both forewarded to SDInbox@myCompany.com.

    The mails are collected from SDInbox@myCompany.com.

    The dispatcher should decide whether it is a „Spam Mail“ or not.

    If it decides that it is not a „Spam Mail“, than it makes a „Create Incident Quickly“.

    The workflow should decide to which Service Desk Queue the ticket should be assigned based on the email property „to“.

    If „SAP@myCompany.com“ is given in the „to“ field, the ticket should be created in the Queue SQPTeam.

     

    I thought that this position in  „SD.Email.InboundManagement“ is fine for this. Unfortunately this does not work. Could someone help me with this problem, please.

     

    Thanks in advance



  • 2.  RE: Ticket creation based on email receiver address.

    Posted Mar 14, 2013 12:30 PM

    if it's <7.5 then you'd set the Incident.SpecificAssignment variable to a value you'd mapped prior to the submitincident component.  if it's =7.5 then you can use the Incident.CurrentlyAssignedQueue[] and Incident.CurrentlyAssignedQueueName variables (again, using a value of matching datatype you'd mapped or fetched).  so you'd need to do these things prior to the SubmitIncident component, unless you want to just reassign task afterwards.

    so basically put a matches rule in front of the submitincident component, set your paths to match the email "To:" field, and then (we'll assume 7.5) use the "Get Incident Service Queue By Name" component and get the queue you want based on the name your evaluation has determined is correct.  if you're using 7.1 you'll need to use a Get Group By Name and then use that as the specific assignment (with a type of "Group" or "2", i can't recall which is used in the mapping).

    anyways maybe that'll help you.



  • 3.  RE: Ticket creation based on email receiver address.
    Best Answer

    Posted May 09, 2013 05:19 PM
      |   view attached

    My solution looks like this:

    (My customer uses Service Desk 7.1.)

     

    I created a “New Integration Library” with two components


    First Component (get All Service Desk Groups): return all Service Desk Groups (but not domain groups)
    SQL = SELECT * FROM dbo.[Group] WHERE GroupName NOT LIKE '%\%'


    Second Component (get Service Desk Group By Email): returns a group name, having the same e-mail address as the Email property "to"

    SQL = SELECT * FROM dbo.[Group] WHERE EmailAddress = 'sap@symplified.org'
     

    (Of course, the SQL queries provided with variable)

     

    Now open the „SD.Email.InboundManagement“ workflow.

    Once the workflow is open, double click on „Email Received Decisions Required“ component.

    Change to „Interaction Setup“ tab and click […] in the area of  „Dialog Model“ property.

    1.png

    Another workflow opens.

    Insert your components (you have previously created)

    2.png

    I added a DropDownList to the “Email Classification Form” component. The DropDownList has the name “Assign to:”

    DropDownList.Items = getAllSDGroups and DropDownList.SelectedItem = getSDGroupBYEmail. Thus, it is proposed in which the group is to be always assigned.

    3.png

    Important:

    4.png

    In the "Output Paths" property all "Create Incident ….." is set to required !

     

    Then I have added 4 components.

    1x add a new data element object and 3x merge text objects.

     

    5.png

    1. Add new data element (Assignment Target to Group)

    1. I set the “Assignment Type” to group (view Screenshot)

    6.png

    1. Merge text (AssignmentTargetToGroup.DisplayName)

    1. Merge date insert the “Groupname” = “objAssignedTo.GroupName”

    7.png

    2. Merge text (AssignmentTargetToGroup.TargetName)

    1. Merge date insert the “Groupname” = “objAssignedTo.GroupName”

    8.png

    3. Merge text (AssignmentTargetToGroup.TargetId)

    1. Merge date insert the “GroupID” = “objAssignedTo.GroupID”

    9.png

    Last you need to edit the "Submit Incident" object.

    • Change to tab [Configuration]
    • Press […] at the property "Specific Assigment"
    • Choose process variables
    • Press [Add Single]
    • Select “AssignmentTargetToGroup” in the “Select Variable” window and Press [OK]
    • Press [OK] to close the “Specific Assignment Array Variable” window
    • And Press [OK] to close the “Submit Incident Editor”

    10.png

    11.png

    Please try as a test environment before you publish it.

     

    Attention!!! This solution will only run if no group notifications are used (notification to all users of the group if a ticket will be assigned to this group).

    But if you have the case that this group notifications are used you have to create a new table in the data base in which the mail “to” and the assigned group are listed.

    Support-SAP@myCompany.com

    SAPGroup

    Support-XYZ@myCompany.com

    XYZGroup

    Best greetings
    Brauschi

     

     

    Attachment(s)

    pdf
    My solution.pdf   890 KB 1 version