Record Producer variables and Changes

JenniferS1
Kilo Contributor

We are starting to implement multiple record producers that create Changes. Each record producer asks the user to fill out different variables. The problem we are running into is that we do not want all of these different variables to appear on the parent change. Certain variables are specific to only one type of change. Does anyone have any ideas how to add the variables to only the change that is opened or if there is a way to add the variables to CTASKS and not the Change itself? Thanks.

9 REPLIES 9

JenniferS1
Kilo Contributor

Hi Leek,
What I ended up doing was creating an extra tab on the Change and added all of the variables to that list. Then I created a UI Policy that would hide those variables unless it met certain requirements.


leek1
Kilo Explorer

Thanks for your response Jennifer S!


Sorry that I neglected this post. It is the Question answer [question_answer] table that stores variables from record producers. You could copy them from and to that table for your CTASKs.


teomas1
Kilo Contributor

Hi,
I used this script in email notification (Table: incident) and I've got variables in different order every times and I've got sys_id for non string variables.
Do you have better solution?

template.print("Details:\n");
var gr2 = new GlideRecord("question_answer");
gr2.addQuery("table_sys_id", current.sys_id);
gr2.query();
while(gr2.next()) {
template.print(' ' + gr2.question.name + " = " + gr2.value.getDisplayValue() + "\n");
}


Kind Regards
Teomas


jlt
Kilo Contributor

I am trying to get the variables incidents in the emails and have used something similar to above script.. and even tried exact script above and am still getting the id for the value/answer instead of the display value..??