Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Method required for copying the value of one variable to other in Record producer(server side)

Nandhinisri
Tera Contributor

Hi,

I need to copy the value of one variable to the other in Record producer (server side). What method should be used?

2 REPLIES 2

Sandeep Rajput
Tera Patron

@Nandhinisri in the record producer script you can write script as follows.

 

producer.*VARIABLE_NAME2* = producer.*VARIABLE_NAME1*+'';

 

Replace the variable name 2 and variable name1 with your variable names.

 

For more information, please refer to https://docs.servicenow.com/bundle/washingtondc-servicenow-platform/page/product/service-catalog-man...

vermaamit16
Kilo Patron

Hi @Nandhinisri 

 

Do you want the copy to happen On-Change of Variable 1 or once the record producer is being submitted ?

 

Thanks & Regards

Amit Verma

Thanks and Regards
Amit Verma