Append (Copy/Pass) all the Record Producer variables data in the Incident Description field.

Chinmay_Batra
Tera Contributor

Usecase: Append (Copy/Pass) all the Record Producer variables data in the Incident Description field.

1. My Record Producer.

Chinmay_Batra_0-1701622827562.png

 


2. For this we need to write one script in the "Record Producer" script section (refer below image).

Chinmay_Batra_1-1701622899904.png


3. We just need to use the producer keyword with a variable name as shown in below image.

Chinmay_Batra_2-1701622963820.png
Script: //Append variables in Description

current.description = 'Affected User '+': '+ producer.affected_user.getDisplayValue() + "\n"
+ 'Urgency '+': '+ producer.urgency.getDisplayValue() + "\n" + 'Problem Description '+': '+ producer.description;

 

Chinmay_Batra_3-1701623026653.png

4. These are the variables(1. Affected user 2. Urgency 3. Descriptionwhich will append/copy in the "Incident Description" field (refer below image).

Chinmay_Batra_5-1701624093693.png

 


If you found this article helpful please mark it as 👍Helpful.


Thank you,
Chinmay Batra

2 REPLIES 2

PriyankaThakur_
Tera Contributor

Hi Chinmay 

 

i have similar requiremnet but need to append multiple choice variables and checkbox variables as well in description. Could you please suggest options for that too 

 

Thanks 

Priyanka 

Chinmay_Batra
Tera Contributor

Hi @PriyankaThakur_ ,
Steps are as follows please refer the below screenshots for better understanding.
1. Below are the question, name & type of variable.

Chinmay_Batra_0-1712861361830.png


2. Script should be like this:

current.description = 'Affected User '+': '+ producer.affected_user.getDisplayValue() +
"\n" + 'Multiple Choice '+': '+ producer.multiple_choice.getDisplayValue() +
"\n" + 'Check box '+': '+ producer.check_box;

Chinmay_Batra_3-1712862359108.png


3. Below are the variable in the form.

Chinmay_Batra_2-1712861698591.png

4. After the selection of values. I am going to submitting it.

Chinmay_Batra_4-1712862458768.png

5. The end result will be like this.

Chinmay_Batra_5-1712862612036.png

 

If you found this article helpful please mark it as Chinmay_Batra_7-1712862761263.png Helpful.

Thank you,
Chinmay Batra