Practical Uses - Display Current Users Helpdesk Incidents
Created: 19 Nov 2008 | Updated: 19 Nov 2008 | 2 comments
This example shows you how to retrieve data from the Helpdesk database using a parameter in a SQL Query. Using the query/script generator you will build an integration component and use the listitemscomponent to display the current users incidents.
Create Query Script Generator
- Create New Integration Project
- Name the component ViewContactIncidents
- Click OK
- Select Query/Script Generator
- Click OK
- Click the drop down and select SQL Server Provider
- Select the appropriated Connection String for your environment
- Enter the SQL Query to return the desired results
Note:In this example, I choose to only return specific values from workitem_current_view.
I also use the a parameter for the contact ID which will be used in our project.Note:I use a parameter in my where clause for the contact ID
- Select Find Input Parameters
- Click Next
- Select Use and populate Project property
- Rename the Project Property Name to ViewIncidents_ConnectionString
Note: This Project Property Name cannot have a period in the name - Click Next
- Click Next
- Click to enable Returns Data
- Click Fill Schema
- Click Next
- Name the Component Display_Current_User_Incidents
- Click Finish
- Select Compile and close
How to Use the Custom View Incidents Component in Your Project
- Create a New Workflow Project
- Name the Project SupportPortal
- Click Next
- Select Import Components from the components toolbox
- Select Custom Libraries
- Select ViewContactIncidents.dll
- Select OK
- Add the following Components:
- Get Current User
- Find Service Desk Contact
- Dialog Workflow
- Create Ticket
- Display_Current_User_Incidents
Note: If you named your custom component something different than Display_Current_User_Incidents, add that component.
- Connect all components
- Set the following properties on Get Current User
- Output Variable Name: v_CurrentUser
- User Name Type: HttpContext
- Set the following properties on Find Service Desk Contact
- Search Value: v_CurrentUser
- Select Contact By: From Picker
- Contact Type: NTId
- Right Click on Display_Current_User_Incidents Component
- Select Edit Component
- Click ellipses for Contact ID
- Select Process Variable
- Click Add
- Select foundContacts[last].ContactID
- Click OK
- Click OK
- Right click on the Dialog Workflow Component
- Select Edit Component
- Click the Interaction Setup Tab
- Click the ellipses for Dialog Model
- Add a form builder component
- Rename the Form Builder component to Support Portal
- Right Click the form builder component
- Select Web Form Editor
- Add labels and text boxes for Incident Title and Incident Comment
Use the following variables:
- Incident Title Textbox - v_IncidentTitle
- Incident Comments Textbox - v_IncidentComments
- Find the ListItemsComponent and add it to the form
Note: I have applied the Symantec Theme to the WebForm - Double Click the ListItemComponent in the form to edit properties
- Click the ellipses for Data Type:
- Select Custom Result as the Data Type under ViewContactIncidents
- Click OK
- Select ellipses for Items:
- Click the Checkbox for Process Variables
- Click Add Array
- Choose the variable Display_Current_User_IncidentsResult
- Click OK
- Click the ellipses for Item Format:
- Add a table to the Advanced Text Editor
- Add the variables from the _list_item that you want to display in the table
Note: You can change the cell padding for the table by going into the source. Also you will need to change the Style of the table to make it fit into your form correctly. - Click Ok to Exit Advance Text Editor
- Click Ok to Exit the Component Editor
- Click Ok to Exit the Web Form Editor
- Click Ok to exit the Embedded Web form editor
- Connect all components in the Embedded Decision Model
- Click OK
- Click Ok to exit the Dialog Workflow Editor
- Right click the Create Ticket Component
- Select Edit Component
- Click the ellipses for Title:
- Select Process Variable
- Select Add
- Select the variable v_IncidentTitle
- Select the ellipses for Comment:
- Select Process Variable
- Select Add
- Select the variable v_IncidentComments
- Choose the variable you created for the Incident Comments Textbox variable
Example:
- Click the Associations Tab
- Click the ellipses for Contact ID
- Select Process Variable
- Select [FountContacts[last].ContactID]
- Select OK to close
Example:
- Click OK to Close Create Ticket Editor
- Run Project to test functionality
Blog Entry Filed Under:


























The Endpoint Management Community Blog is the perfect place to share short, timely insights including product tips, news and other information relevant to the Endpoint Management community. Any authenticated Connect member can contribute to this blog.
Comments 2 Comments • Jump to latest comment
In "Create Query Script Article", step 15, when click on return data, it pops up a dialog (edit object) asking for Contact ID field (as it is blank). Are we leaving it blank?
You can leave the ID blank... it will successfully return the needed data, also without any ID specified
Would you like to reply?
Login or Register to post your comment.