Report output including Variable Set variables

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2015 01:19 PM
The ServiceNow wiki offers the information needed to learn how to create a report —
- Outputting RITM variables (that are not in Variable Sets)
- Filtering, Grouping By and Stacking by Variables, including variables that are in Variable Sets
https://wiki.servicenow.com/index.php?title=Reporting_on_Service_Catalog_Variables
However, ServiceNow does not yet have the functionality to output or filter on variables from Variable Sets.
When you aren't offered the variable/question you need for the report, then it must be in a "Variable Set".
Example: Two different catalog items both ask the user to choose a computer operating system with the question "Select a Platform"; the options are "WIN" and "MAC". That variable is in Variable set called "New Computer Form" — that Variable set is used in both catalog items. Assignment Group managers would like to create reports for computer requests and output the operating system requested — but cannot get the "Select a Platform" variable/question output on the report.
Work Around A: Create multiple reports that filter on the various values of the variable/question needed.
Create a report that filters on "Select a Platform" being "WIN" and a report filtering on "MAC". Since the variable for that question is included in a Variable Set that is used on both catalog items, both kinds of RITMs will be reported on both the "WIN" report and the "MAC" report.
Work Around B: Relate Variables Set variables to an new dummy catalog item
It might seem to make sense initially to simply relate Variable Set variables to an existing catalog item — until you double-check that catalog item afterward and discover that those variables now appear twice on the catalog item: once where you originally placed the Variable Set and now additionally elsewhere, probably at the top of the catalog item. Plus, you can relate a variable to only one catalog item but you can report on it
regardless of what RITMs you are in the filtering; you then have to remember which catalog item it is related to when you want to output it on a report.
However, relating Variable Set variables to a new dummy catalog item allows the reporting form to "find" the variables without adversely impacting any existing catalog items.
First: Create a new dummy catalog item and relate the Variable Set variables to it that are needed in reporting.
- Catalog Item Definition:
- Name it and optional value the Short Description.
- Uncheck "Active" to make the catalog item inactive and eliminate it from any search results.
- Don't value any other fields on the catalog item.
- Setup:
- In the menu for Service Catalog — Catalog Variables, select "All Variables".
- Search for the "Question" that needs to be output on reports or the "Variable Set" containing the question/variable. Value "Cat item" with the new dummy catalog item created above.
Next: Output Variable Set variables related to the dummy catalog item
- Note: User needs "catalog" role to view request items, which includes RITMS & R-TASK variables (in an independent of Variable Sets)
1: In the "Available" window, find and click once on "Variables +". A new plus icon "+" will appear between the "Available" and
"Selected windows. Click once on that new plus icon.
2: In the "Available" window, find and click once on "Variables +". A new plus icon "+" will appear between the "Available" and "Selected" windows. Click the new plus icon once. In the resulting Catalog Item window, search for and select the catalog item needed. In this example, the dummy catalog item is "HMK Variable Set Variables For Reporting".
3: The "Available" window now lists the Variable Set variables related to that catalog item.
Filtering on Variable Set variables that are now related to the dummy catalog item
1: Select "Variables" for "choose field".
2: The next field changes to "Select Item" — click on the magnifying glass search icon to the right, and search for and select the catalog item. (#2 in the prior section has details on this if needed.) The 3rd field is "select a variable" — click the search icon to choose a variable.
3: In the example below, "Select a platform" occurs across multiple catalog items, but is not valued on all RITMs. To report only RITMs where it is valued, the filter can be done as an "OR" for each possible value, or as an "is not '—None—". This trick will list all RITMs regardless of the actual catalog item or variable value. Grouping by "Item" will segregate by catalog item if desired.
- Labels:
-
Problem Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2016 10:26 AM
The people at our company who work with requests and can see the items and requests tasks had no problem seeing the data on the report. I think there are roles that need to be added to the standard ITIL user so that they can view request and request item data, including variables. Sorry, not recalling it at the moment, but did want to mention that. I think it is more data/table based.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2016 12:49 AM
Hi Lisa,
Very helpful information.
We have a variable set and we are using this in all our catalog items. Now users want to take the report on the variables in this variable set. But i can't find a way to add variables under variable set to the selected columns of the report. Please suggest me on how can i acheive this.
Thanks and regards,
Swamy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2016 12:37 PM
If I'm understanding your question, you are asking how to output those Variable Set Variables on the report.
The reporting form "Columns" list has "Variables[+]" at the end -- select it to display the "+" icon, which appears between the "Available" and "Selected" lists, per the 1st screenshot below. Click on the "+" icon to be prompted for the list of catalog items (assuming that the table for the report is "Requested Item"). From the catalog item list, select the dummy catalog item with the Variable Set Variables related to it, per the 2nd screenshot below. Next you will see variables in the "Available" column -- select what is needed for output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2016 06:33 AM
I have been able to make this work for a report, but in order for a user to see the variables as columns on the report, they must have the catalog_admin role. I don't want to give my itil users who need to run these reports catalog_admin. Does anyone know what permissions are needed where to allow itil users to see these variables on reports?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2016 07:14 AM
I'm seeking the answer to the same question "Does anyone know what permissions are needed where to allow itil users to see these variables on reports?"