How can I create a right-click Item Task that will open a report and pass the selected resource's attributes as parameters?


Article ID: 181804


Updated On:


Management Platform (Formerly known as Notification Server) Software Management Solution




How can I create a right-click Item Task that will open a report and pass the selected resource's attributes as parameters?


In this example, we'll show how to configure an Item Task's Substitution Parameters in a URL action.

This Item Task will be used to open the Software Compliance Status report and pass the selected computer's name as a parameter to the report.

To begin creating the task:

  1. In the Symantec Management Console menu go to Settings, All Settings.
  2. Expand the Notification Server folder and the Right Click Menu subfolder
  3. Right-click on the User Defined folder and select New, Right-Click Action
  4. At the top of the right-hand pane, give your new Item Task a name such as Software Compliance Status
  5. At the Resource Type dropdown box select Computer
  6. At the Action Type dropdown box select URL
  7. Paste the following into the Base URL box (For steps to find the Report's Item GUID, see steps 1a-1c in KB45198):
    1. http://localhost/altiris/reporting/report.aspx?ItemGuid=6627546d-e98a-4fea-a1c2-741abcc2b832&Parameters=
  8. At the Open dropdown box select New window (See KB45288)
  9. Click the Add button in the toolbar of the Substitution Parameters table
  10. When the Select Attributes dialog opens, click the Group dropdown and select Resource Item
  11. Hightlight the Name row in the Available Items table, click the right arrow, >, to add the Name field to the Selected Items table and click OK
  12. Highlight the Resource Name row in the Substitution Parameters table and click the Edit pencil
  13. When the Edit Attribute dialog opens, change the parameter name to Computer Name and click OK (For more information on using report parameters, see KB45198)
  14. Append the following to the end of the text that you pasted into the Base URL field in step 7a:
    1. Computer Name:[%Computer Name%]
  15. The full Base URL should now read:
    1. http://localhost/altiris/reporting/report.aspx?ItemGuid=6627546d-e98a-4fea-a1c2-741abcc2b832&Parameters=Computer Name:[%Computer Name%]
  16. Click the Save Changes button
  17. Click the Manage menu and select Computers
  18. Right-click on any computer and select User Defined, Software Compliance Status
  19. The Software Compliance Status report will open and the Computer Name field will be populated with the name of the computer you had selected

The XML for this Item Task is also attached to this article. You can download the attachment from the right-hand pane and import it into the User Defined folder (see steps 1-3 to locate this folder) by right-clicking the folder and selecting Import.


Software Compliance Status.xml get_app