What table(s) hold the variable and variable values for a request item?

stevezadroga
Tera Contributor

Team,

What table or tables in the database schema hold the variables and variable values?  For example, when I view a Request Item there is a section called variables with fields and values.  I am trying to understand what table or tables holds these values.  Ultimately, I am looking to JOIN these variable fields and values to the sc_req_item table.

1 ACCEPTED SOLUTION

M2M table to request item
sc_item_option_mtom.request_item = sc_req_item.sys_id

M2M table to variable
sc_item_option_mtom.sc_item_option = sc_item_option.sys_id

View solution in original post

14 REPLIES 14

Harsh Vardhan
Giga Patron

do you have the backend table names that hold variable names and variable values?  I am looking to make an API call to retrieve this data, but need the backend table names.

have you tried with variable ownership table (sc_item_option_mtom)?

use glide record to Query by the Request Item and you'll get a list of variables for it.

Hi @Harsh Vardhan  Do you know which table holds the SCTASK variables and its values?

We have a requirement to copy SCTASK variables to Story and these variables are exclusive to SCTASK and they aren't visible on RITM.