Skip to content

Commit 36076a0

Browse files
Create readme.md
Readme file for information and usage of Copy Variable Set
1 parent 8a17d38 commit 36076a0

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Copy Variable Set Utility for ServiceNow
2+
3+
> A utility script that allows you to **clone an existing Variable Set** (including all its variables) in ServiceNow — perfect for reusing and replicating large variable sets across multiple catalog items.
4+
5+
---
6+
7+
## Overview
8+
9+
In ServiceNow, Variable Sets are reusable collections of variables that can be attached to Catalog Items, Record Producers, and Order Guides. However, there’s no out-of-the-box option to duplicate a Variable Set with its variables.
10+
11+
This script provides a quick and reliable way to clone an existing Variable Set — including all variable definitions and attributes — to a new one.
12+
13+
---
14+
15+
## Features
16+
17+
* Copies an entire Variable Set along with its variables.
18+
* Preserves field types, names, ordering, and configuration.
19+
* Allows you to rename or modify the cloned Variable Set before saving.
20+
* Copy Variables, Client Scripts, UI Policies, UI Policy Actions
21+
22+
---
23+
24+
## Prerequisites
25+
26+
* ServiceNow admin or developer access.
27+
* Understanding of GlideRecord and scripting in ServiceNow.
28+
29+
30+
---
31+
32+
## How to Use
33+
34+
1. Navigate to **System Definition > UI action**.
35+
2. Set the name "Copy Variable Set".
36+
3. Paste the script into the editor.
37+
4. Click Save.
38+
39+
---
40+
41+
## License
42+
43+
This script is distributed under the **MIT License** — free to use and modify.
44+
45+
---
46+
47+
## Author
48+
49+
**Deepak Negi**
50+
Based on Medium article: [Copy a Variable Set](https://deepakvednegi.medium.com/copy-a-variable-set-f05e8a0635ac)
51+
52+
For enhancements or feedback, feel free to open a pull request or issue in this repository.

0 commit comments

Comments
 (0)