- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2022 02:15 AM
var gd = new GlideRecord('data');
gd.addQuery('sys_created_onRELATIVELT@minute@ago@1');
gd.query();
while(gd.next()){
current.xyz = current.variables.xyz;
current.zyx = current.variables.zyx;
gd.update();
}
Regards,
alen
Solved! Go to Solution.
- Labels:
-
Compliance Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2022 02:33 AM
Hi,
it should be something like this
var gd = new GlideRecord('data');
gd.addQuery('sys_created_onRELATIVELT@minute@ago@1');
gd.query();
while(gd.next()){
gd.xyz = gd.variables.xyz;
gd.update();
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2022 02:33 AM
Hi,
it should be something like this
var gd = new GlideRecord('data');
gd.addQuery('sys_created_onRELATIVELT@minute@ago@1');
gd.query();
while(gd.next()){
gd.xyz = gd.variables.xyz;
gd.update();
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2022 02:34 AM
Hi
You have to share more details, from which table you are trying to table and what exact details you want to be copied.
Not really much to go on with here.
Aman Kumar