instURL= gs.getProperty('glide.servlet.uri');
if (instURL.indexOf('https://PROD.service-now.com') > -1) {
//--NOT TO BE RUN ON PRODUCTION
gs.print('do not run on prod');
}else{
var gr=new GlideRecord('sys_email');
gr.addQuery('type!=received^ORtype=NULL');
//gr.query();
//gs.print(gr.getRowCount());
gr.deleteMultiple()
}
Comments
Post a Comment