Distinguish new record and updated record
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2012 05:03 AM
How can I identify newly created record and updated record using javascript query
thanks
sandip
Labels:
- Labels:
-
Integrations
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2012 06:41 AM
var x = new GlideRecord('your_table_name');
x.addEncodedQuery('sys_created_onBETWEENjavascript:gs.dateGenerate("2012-04-25","00:00:00")@javascript:gs.dateGenerate("2012-04-25","23:59:59")');
x.query();
while(x.next()){
x.your_field = "whatever you want";
x.update();
}