We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Last updated work notes date and time

Mr_Blue
Tera Expert

 

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.

find_real_file.png

 

Best Regards,

11 REPLIES 11

@Mr.Blue 

Thank you for marking my response as helpful.

If my response helped you please mark it correct to close the question so that it benefits future readers as well.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Mohammad Danis1
Giga Guru

Hey,

 

Please try :

var v= new GlideRecord('dmn_demand');
v.addQuery('number','DMND0001607');
v.query();

while(v.next()){
gs.print(v.sys_updated_on.getDisplayValue());
}