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
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...

Amit Verma
Kilo Patron
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


Please mark this response as correct and helpful if it assisted you with your question.