How can I pass a parameter value to a report using the report's URL (link)?
Sometimes it is useful to have a link to a Notification Server report that includes a key parameter value, rather than having to set the parameter manually each
time the report is used.
Two basic components are needed to do this:
- The base URL to run the report:
- A Parameter list appended to the end of the report URL
In this example, we'll set the Event Status parameter to 'Failed' for the Daily Event report.
To do this, use the following steps:
- Find the report's GUID:
- Browse to the Daily Event report in the Symantec Management Console
- Click the drop-down arrow on the icon left of the report name in the right-hand pane, and click Properties as shown below
- When the Properties page loads, copy the GUID value from the General tab
- Begin building your report URL starting with the first URL component from the list above
- Replace the <ReportGuidHere> variable shown above with the GUID you copied in step 1c
- Notice that on the report's interface, the 'Event Status' parameter has a space in its description; In step 4, this parameter will be referred to as 'EventStatus' in the URL, which is the parameter's actual name. Some parameter's names may include spaces. To find the parameter's name, click the report icon dropdown and select View as XML. Scroll down to the Parameters element within the XML document and find the parameter you want to use. There you will find the parameter's name value displayed between the <Name>...</Name> element tags.
- Append the following to the report link created in step 2b:
- If done on the server, the completed URL syntax will be:
- Paste the full URL into the address bar in Internet Explorer and navigate to the URL
- You should now see in the Parameters section of the report that the Event Status has been passed as 'Failed' as shown below, and matching events will be displayed in the report:
Rate this Article