Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Create a report with RITM Variable Sets and Multi-row Variable Set

Erika
Tera Expert

Hi community! 

I'd like to know if there's a way (or if it is possible) to create a report joining RITM variable sets and Multi-row Variable sets in one report. 

1 ACCEPTED SOLUTION

Not applicable

HI Erika,

You can actually report on MRVS by creating a database view, then use that view to report on

 

  1. Create a new Database view (System Definition -> Database Views)
    1. Give it a name like 'u_sc_req_item_multi_var'
    2. Label like "Multi Row Variable Set"
    3. Plural like "Multi Row Variable Sets"
    4. Description like "Joins the sc_req_item to the Multi Row variable set table to be able to report"
  2. Save
  3. Under View Tables click "New"
    1. Table: Requested Item [sc_req_item]
    2. Variable Prefix: sci
    3. order: 100
    4. Where clause: mrqa_parent_id = sci_sys_id
    5. Click "Submit"
  4. Under View Tables click "New"
    1. Table: Multi Row Question Answer [sc_multi_row_question_answer]
    2. Variable Prefix: mrqa
    3. order: 100
    4. Where clause: keep this field blank
    5. Click "Submit"

You should now have a DBV that looks something like this:

find_real_file.png

 

Create a new report

Select Table as source and select your new Database view (Multi Row Variable Set) as the table 

find_real_file.png

 

You should now be able to create a query and select the catalog item that you want to report on that has the MRVS, as well as adjust your columns to display the Question and Value as well as any other columns you want on your report.

find_real_file.png

Referred from this thread :https://community.servicenow.com/community?id=community_question&sys_id=252bce56dbd363809a64e15b8a96...

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

View solution in original post

20 REPLIES 20

I found this thread and had the same issue.

For anyone else coming to this, just add the table you need to the Database View with a Where clause. E.g, I needed to add alm_asset. Then add a Where clause like asset_sys_id = mrqa_value. Then you can pull in the Display value/Name/whatever from that table. Adjust your List Layout as appropriate.

bostonsnow
Kilo Guru

Hi all, we also have the requirement to report on RITMs created w/cat items w/MRVSs. 

In the screenshot example above, how do you know which set of values were submitted in a single row on the MRVS?

In other words, there is just a random list of Quantity, Description, Model Number, etc... How do you know which ones make up a row on the MRVS ?

Did you find a solution for this? I have same requirement 

 

We did what Neil P suggested below. Thank you @Neil P.

For mine, I group by number, then sort by row index.  That groups them sufficiently.  An excel output of the table is a little better, sorting wise.

 

image.png