ServiceDesk

 View Only

Map User Location and Department to Incident Created via Email 

Mar 05, 2014 03:07 PM


If you like to have affected user location and department populated along with incident data you need to modify SD.Email.Monitor project.

1. Open SD.Email.Monitor.package.

2. Switch to Model[2] ProcessMessage.

All of the following goes between components 2.40 - Verify Primary Email and 2.112 - Create Incident (Single Value Mapping) component.

3. Add: Get User Details Component add connection from Verify Primary Email equals and Item in collection (picture of end result below).
Component configuration: 
- Input: Email Address expand and set value source to Process variables. From variables list add [UserToCheck.PrimaryEmail].
- Relative URL: expand and set value source to Process variables. From variables list add [[ProfileProperties].service_desk_settings_data_services_url]

 4. Add Get Department for User Component and connect Get User Details Component to it.
Component configuration:
- Input: User ID: Expand add Process variables and add [GetUserDetailsComponentResult.UserUniqueId]
- Relative URL: expand and set value source to Process variables. From variables list add [[ProfileProperties].service_desk_settings_data_services_url]

5. Add Text Exists component and connect Get Department for User to it.
Component configuration:
- Expand and add variable GetDepartment.Name
- Exists path connect to Single Value Mapping (5.1) to Map department.
- Does not exist path connect to GetLocationForUser component:

5.1 Add Single Value mapping component to map department.
Component configuration:
- Target Type: IncidentTicket (under Symantec.ServiceDesk.Im.Core).
- Output Variable Name; write: Incident (Output must not be changed!).
- Mapping: Expand GetDepartment (on left) connect Name to AffectedDepartment (on right) and ResourceGuid to AffectedDepartmentId

6. Add GetLocationForUser component. Connect Does not exist (5) and Single value mapping (5.1) component to it.
Component configuration:
- Expand User ID and add variable [GetUserDetailsComponentResult.UserUniqueId].
- Relative URL: expand and set value source to Process variables. From variables list add [[ProfileProperties].service_desk_settings_data_services_url] 
Note:
Leave email empty!

7. Add Text Exists component and connect GetLocationForUser component to it.
Component configuration:
- Expand and add variable UserLocation.Name
- Exists path connect to Single Value Mapping (7.1) to Map Location.
- Does not exist path goes to Create Incident (component 2.112).

7.1 Add Single Value mapping component to map Location.
Component configuration:
- Target Type: IncidentTicket (under Symantec.ServiceDesk.Im.Core).
- "Map into Existing Value" must be checked!
- Output Variable Name; write: Incident (Output must not be changed!).
- Mapping. Expand UserLocation (on left) connect Name to AffectedLocation (on right) and LocationUniqueId to AffectedLocationId
- Connect it with Create Incident (component 2.112).

8. Add Exception Trigger by Components and connect it to Create Incident (component 2.112).
Component configuration:
 - expand Components and select:
 Get User Details Component
 Get Department for User
 GetLocationForUser

9. Edit: Create Incident Single value mapping component.
Map into Existing Value must be checked!

10. Test, publish.

Please note that this will only apply to new incidents created via email.
I have added few extra logging components on flow to log exception and values that we are mapping for easier troubleshooting.

SDEmailMonitoring_LD.JPG

 

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.