Please note that the steps in this article involve customizing one of the ServiceDesk projects. It is highly recommended that customization of ServiceDesk projects only be undertaken by Workflow or ServiceDesk administrators that are familiar with creating, modifying and publishing Workflow and ServiceDesk projects.
To resolve this issue you will need to modify the GetAllDepartments model of the SD.DataServices project. To do so please follow the steps below:
- Import the attached GetAllDepartmentsReport to your Notification Server under Reports > All Reports > ServiceDesk folder.
- On your ServiceDesk Server open the SD.DataServices project in Designer.
- Once open select the Get All Departments model.

- Click the Create Integration Library button at the bottom of the Toolbox pane.

- In the New Library dialog window enter GetAllDepartments for the name and click OK.

- Select the Reports Component Generator for NS 7.0 and click OK.

- On the Generate Components screen, verify the Notification Server Address is correct and click Get Reports.
- Scroll down in the list of reports. Find and check the box next to the GetAllDepartmentsReport in the ServiceDesk section and click Next.

- Click Run and then Finish.

- In the Integration Library window click Compile and Close. This completes the creation of the custom component we will need.

- Right click on the Get All Departments (Cached) embedded model component and choose Edit Component.
- In the Get All Departments (Cached) Editor window, click the ellipsis at the end of the Output Data line.

- In the Edit Parameters window, click the ellipsis in the Type column.

- In the Select Data Type window, type ‘getalldepartments’ in the Search box, select GetAllDepartmentsReportResult and click OK.

- Click OK again on the Edit Parameters window and again in the Get All Departments (Cached) Editor window.
- IMPORTANT – Save the project at this point. This will ensure that the Data Type change that was just made takes effect.
- Double Click on the Get All Departments (Cached) model.
- Delete the GetAllDepartmentsComponent.
- Search the Toolbox for ‘getalldepartmentsreport’ and add that component to the project.

- Connect the Start component to the GetAllDepartmentsReport component and the GetAllDepartmentsReport component to the End component.
- Double click on the End component.
- In the End Editor window, click the ellipsis at the end of the Mapping line.

- In the Edit Data Mapping window, select Value From Data and click the ellipsis at the end of this line.
- The Select Variable window that opens should already have selected GetAllDepartmentsReportResult, if not select it and click OK.

- Click OK again on the Edit Data Mapping window and the End Editor window.
- Click OK to close the Edit Embedded Decision Model.
- Double click on the Create Results multiple value mapping component.
- In the Create Results Editor window, click the ellipsis after Source Array Type.

- In the Select Data Type window, type ‘getalldepartments’ in the Search box, select GetAllDepartmentsReportResult and click OK.

- Click OK again to close the Create Results Editor.
- IMPORTANT – Save the project at this point. This will ensure that the Data Type change that was just made takes effect.
- Double click on the Create Results multiple value mapping component.
- In the Create Results Editor window, click the ellipsis after Target Mapping Definition.

- Select each of the now invalid mappings in turn and delete them.
- Connect the (Source) GetAllDepartmentsReportResult data items to the DepartmentSearchResult data items as shown in the below screenshot and click OK.

- Click OK again to close the Create Results Editor.
- Double click the Variable Exists Rule component to open it.
Uncheck Pick Definition From Current Model
-
Check Is Array and then click Variable Type and Variable Name and set according to screen shot.
-
Click okay and okay to exit the model.
Publish the modified SD.DataServices project and then restart IIS and the Logicbase 2006 Server Extensions service or Symantec Workflow service depending on your version, to ensure the change take effect.
Applies To
ServiceDesk 7.0 and 7.1