Testing Outbound email in test

Sam Ogden
Tera Guru

Hi all,

In our test instance we currently have the outbound email turned off.   I need to test a change I have made, however my understanding is if I put my email address in and turn on the outbound email function, any email set to send-ready will send to my email address.

Currently we have 3500 emails in this state in TEST.

What is the best way to prevent all these previous emails to swamp my inbox and only receive the new emails I create once I turn on the outbound email?

Thanks

Sam

1 ACCEPTED SOLUTION

adamjgreenberg
ServiceNow Employee
ServiceNow Employee

You will need to write a glide-record update script on the sys_email table(s) to update anything in send-ready to sent or whatever field you want.




Perl API GlideRecord







Since this is a test environment, you could also just delete everything in the sys_email tables and start fresh.


View solution in original post

3 REPLIES 3

adamjgreenberg
ServiceNow Employee
ServiceNow Employee

You will need to write a glide-record update script on the sys_email table(s) to update anything in send-ready to sent or whatever field you want.




Perl API GlideRecord







Since this is a test environment, you could also just delete everything in the sys_email tables and start fresh.


Thanks Adam,



This seemed to work, changed them all to sent and then only got the new emails through



Thanks


Jaspal Singh
Mega Patron
Mega Patron

Hi Sam,



You can have a background script written & get all mails flushed from sys_email table. Then change the outbound mail address. Since, this is TEST I am sure you would not require any mails for further references.