Last updated work notes date and time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2020 03:01 AM
Hello developers,
how to get last updated date and time of a work notes on demand.
i am writing a background script here.
Can you please guide me on this.
Best Regards,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2020 03:03 AM
Hi,
Not sure if you have checked OOB sys_udated_on (Updated) field that stores the same value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2020 03:07 AM
thank you for reverting, Do you have an example for this sys_udated_on
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2020 03:09 AM
Hi,
this field is out of the box present on every table -> Updated [sys_updated_on]
Whenever records are updated system automatically changes value for this field with the time record got updated
Please consider marking appropriate reply as ✅Correct & 👍Helpful.
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
05-13-2020 03:23 AM
Hey All,
I am not getting the right date and time here, Can you please check this if i am making mistakes
var v= new GlideRecord('dmn_demand');
v.addQuery('number','DMND0001607');
v.query();
while(v.next()){
gs.print(v.sys_updated_on);
}