How to copy short description and other field variables from record producer to incident created from it

k_jayanth
Tera Contributor

I have to copy short description and some other variables of a record producer, into the short description of the incident created by the record producerSR.png and the variables values should be displayed in the activity filter of new incident.

1 ACCEPTED SOLUTION

In the case where you want to copy a variable to a field with a different name (but same data type), you can use the script field on the record producer.



current.field_name = producer.variable_name;



This will copy the value of variable_name to the target records field_name. Section 2.1 here...



http://wiki.servicenow.com/index.php?title=Record_Producer


View solution in original post

5 REPLIES 5

Chuck Tomasi
Tera Patron

In each variable, you have the option to map to a field. Check that and select the field to map to.



find_real_file.png


Hi chuck,


Thanks for the info, but my requirement was to display those exact variables on the incident form, mapping works fine for short description but for other i couldn't apply it. I found out about 'Incident editor variables' and it was helpful for completing the requirement.



Thank you,


Jayanth


In the case where you want to copy a variable to a field with a different name (but same data type), you can use the script field on the record producer.



current.field_name = producer.variable_name;



This will copy the value of variable_name to the target records field_name. Section 2.1 here...



http://wiki.servicenow.com/index.php?title=Record_Producer


Yes using it already.


Thanks,


jayanth