- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2017 02:52 PM
I want to dupe (make a copy) of a transform map. I brought up the map that I wanted to copy. I changed the Name and right click "Insert and stay" but it doesn't save any of my field maps.
Thanks.
Solved! Go to Solution.
- Labels:
-
Integrations

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2017 03:18 PM
Create a Ui action with following script.
copy(current);
function copy(current) {
current.name = "Copy of " + current.name;
var gr = new GlideRecord('sys_transform_entry');
gr.addQuery('map', current.sys_id);
gr.query();
var newMap = current.insert();
while (gr.next()) {
gr.map = newMap;
gr.insert();
}
}
Thanks,
Bharath

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2017 03:18 PM
Create a Ui action with following script.
copy(current);
function copy(current) {
current.name = "Copy of " + current.name;
var gr = new GlideRecord('sys_transform_entry');
gr.addQuery('map', current.sys_id);
gr.query();
var newMap = current.insert();
while (gr.next()) {
gr.map = newMap;
gr.insert();
}
}
Thanks,
Bharath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2019 08:05 AM
Hi all,
the simplest way is clicking on the UI Action "Copy" on the transf map.
It copies the field maps too!
If useful, please click on Helpful or Vote.
Thanks
Francesco
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2023 11:16 AM
Unfortunately, it didnt copy all the fields, only the main script