How To | Join Tables in Q-SYS Reflect App for ServiceNow

Learn to effectively join tables in the Q-SYS Reflect App for ServiceNow.

Updated at January 20th, 2026

Procedure


Use the following information for creating and joining tables in the Q-SYS Reflect App for ServiceNow:

Overview

By default, the Q-SYS Reflect App for ServiceNow uses the standard Q-SYS Reflect API calls and stores the returned information in dedicated tables within ServiceNow. Some of this data includes IDs and other technical details that are not user-friendly and may need to reference additional tables and data within ServiceNow. The guide below explains how to map these tables together to create lists and reports that are easier for your users to work with.

Requirements

Setup

Create New Database

  1. Navigate to All > System Definition > Database Views.
  2. Select New.
  3. Name the view as you would name a new table.
    1. The application converts capital letters to lower case and spaces to underscores.
  4. Provide a label and a plural.
    1. The Label and Plural fields define how the database view is labeled in lists and forms. For example, give a database view with the label Duplicate installation the plural Duplicate installations.
  5. (Optional) Provide a description of the database view so that other users know its purpose.
    Select Submit.
 
 

Add Tables to Database

  1. From the Database View form, select New on the View Tables related list.
  2. Configure the form.
  3. Select Save.
  4. Complete the form and select the Left join check box.
    1. Selecting Left join causes the left-hand table in the database view to display all records, even if the join condition does not find a matching record on the right-hand table. Select this check box to view tables that specify a Where clause. Selecting Left join for view tables without a Where clause does not affect the query.
    2. Joined tables are ordered left to right from lowest to highest Order values.
    3. Use only lowercase characters in the Variable prefix. Using uppercase characters may prevent you from viewing the database view in a list.
  5. Select Submit.
  6. Personalize the View Tables related list to show the Left join column.
    1. The Left join field is true.
  7. Select a record to view a table.
 
 

Note

For more information from ServiceNow about how to setup, configure, and use ServiceNow Database views please refer to the ServiceNow Technical Knowledge Base.

 

Example

In this example we will transform the data for the System Items section of the Q-SYS Reflect App for ServiceNow. Below you will see that Core ID and Design ID fields are just number but we want to be able to see the Core Name, Design Name, and System Name fields which do not exist in the x_qsc_q_sys_reflec_system_items table.

  1. Navigate to All > System Definition > Database Views.
  2. Select New.
  3. Name the view. 
    1. Name: q_sys_reflect_system_peripherals (u_ is automatically placed at the beginning to notate its a custom table)
  4. Give the view a label, plural, and description for reference later (These are optional fields but useful for know the purpose of this view.
    1. Label: System Peripheral
    2. Plural: System Peripherals
    3. Description: A Database view for all Q-SYS Reflect information by system items that links tables x_qsc_q_sys_reflec_systems and x_qsc_q_sys_reflec_system_items

  1. Click the submit button to create the Database view.
  2. You will now be returned to the All > System Definition > Database Views list. Find the Database view in the list and select its name to open the view and add new tables to the view.

  1. Select New on the View Tables related list.
  2. Choose the starting table you want to map together.  For our example we will choose the x_qsc_q_sys_reflec_system_items table.
  3. Then choose a prefix name for the table which is required and used in the syntax for join tables together in the following steps.
    1. Variable prefix: sysitems
    2. All other items can remain at their default values

  1. Select Submit.

  1. Now repeat steps 7-9 to map a second table to this first one we have added.  For our example we will choose the x_qsc_q_sys_reflec_systems table in order for us to be able to get the System Name from System ID in our System Items table.
  2. The only additional field that we need to fill out now is the Where clause.  This is how we map the data together and correlate matching fields.   We are going to use system_id because they exist in both the x_qsc_q_sys_reflec_systems and x_qsc_q_sys_reflec_system_items table.

  1. Select Submit.
  2. Now we are able to correlate Core ID and System ID to Core Name and System Name since both fields exist in the x_qsc_q_sys_reflec_systems table.

  1. You can click the Try It button under related links on the left hand side of the page and it will open up the default view of the system items table as shown by default in the Q-SYS Reflect App for ServiceNow.

  1. Right click on any column header and select Configure > List Layout to be able to change what data is displayed.

  1. You will see that now we have available data from both tables to be able to display.  Fields that are named the same in both tables will shown twice with their prefixes we defined early to show which table you will be displaying.

  1. Let replace Core ID and Design ID with Core Name and Design Name from the available fields and add System Name to the selected list. After adding those select Save.

  1. Now the list will show the Core and Design Name in a column (Figure 13).

  1. The final step would be adding this to location where you can find this list.  You can either add it to your favorites, create a new application menu to put it under, or modify a existing application menu and add it there.
    1. To add to favorites click the star button at the top right to add it your favorites.

  1. To add it to a existing application menu navigate to All > System Definition > Application Menus.
  2. Select the application you want to add it to.  For our example we will add it into the Q-SYS Reflect App menu.

  1. Select the New button on the right hand side of the screen.
  2. Give it a Title and assign it a role if so desired.

    ServiceNow Roles Further Information

    For more information from ServiceNow about roles please refer to the ServiceNow Technical Knowledge Base.

     

  1. Select the Link Type tab and in the table field select our database view table.

  1. Select Submit and now when using the All menu and searching for the App it will show up.

  1. This example is just a demonstration on how to join tables together in ServiceNow and there are many other combinations and refinement possible.  For further information and functionality it is recommended to review ServiceNow training and work with your ServiceNow admin on implementation into your instance.