clearing all email logs in a sub prod instance

 discussed here:



var instURL = gs.getProperty('glide.servlet.uri'); if (instURL.indexOf('')>-1) { gs.print('do not run on prod'); } else { var grEmails = new GlideRecord('sys_email'); grEmails.addQuery('type', 'send-ready'); grEmails.setValue('type', 'send-ignored'); grEmails.updateMultiple(); }


Popular posts from this blog

GlideRecord setValue

Running transform maps asynchronously

Post a command to the ECC queue for the mid server to initiate a powershell file copy