Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

This looks like a great reference, if I could recreate it. How was the list created? What table did they use to start?

Ian Mildon
Tera Guru

They can be found on the "question_answer" table.

G Balaji
Kilo Guru

sc_item_option_mtom is the table name.

 

Please share your exact requirement in case of you need more information/pointers.

Do you know what fields (keys) I should use to JOIN these 3 tables?  Assuming sys_id will be used...

Troy Riblett
Giga Guru

Request Item: sc_req_item
Request Item to Variable: sc_item_option_mtom
Variable: sc_item_option