Method required for copying the value of one variable to other in Record producer(server side)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-29-2024 03:18 AM
Hi,
I need to copy the value of one variable to the other in Record producer (server side). What method should be used?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-29-2024 03:21 AM
@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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-29-2024 03:27 AM
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.