How to test Inbound Email Actions for the sub-production instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2018 12:11 AM
Hello,
I need a bit of help with the testing of Inbound Email Actions.
The OOTB inbound action named Create Incident (Forwarded) was edited by me and I created a script which looks like this:
if(email.direct.indexOf('xxxx@service-now.com') >= 0) {
current.assignment_group.setDisplayValue('Admin');
}
if (email.direct.indexOf('yyyy@kkkk.com') >= 0){
current.assignment_group.setDisplayValue('AR');
}
if (email.direct.indexOf('uuuuu@kkk.com') >= 0){
current.assignment_group.setDisplayValue('Test Group');
The issue that i'm having is that I do not know how to test this script since all the fwd emails are going to the production environment and this script was created in the development instance.
So, for example, if an email is sent to 'yyyy@kkkk.com how to I route that email to the development instance instead of production?
Thank you,
Alex
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2018 12:15 AM
Is email active on your subproduction instance?
If yes, what email address are you using there? You can use there a different email address than the one from prod.
If you create an incident in that subprod instance an email should be sent automatically to the email address configured in email accounts. Now, if you reply to that notification an email should come back to that subprod instance and then inbound action could be used.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2019 11:59 AM
Hello,
Did you ever figure this out? We are hoping to find a solution for this as well.