Forward Email to create an Incident

Navneet3
Tera Expert
Hi, I need help with Forward inbound email. I have created the email action but the ticket is not getting.

Here is the requirements.

Currently, Users are emailing the manager for ALL their issues. The team is having hard time managing the emails.

The team wants to forward the email to a specific email address which is set (on the exchange) forward to ServiceNow instance.

Please see the attachment (screenshot) the inbound actions.

 

thank you

15 REPLIES 15

sumanta pal
Kilo Guru


Sure, I can help you with that. Here are the steps you need to follow to set up an inbound email action in ServiceNow:

1. Navigate to System Policy > Email > Inbound Actions.
2. Click New to create a new inbound action.
3. Fill in the fields on the form, as appropriate. Here are some important fields:
- Name: Enter a unique name for the inbound action.
- Active: Select this check box to activate the inbound action.
- Target table: Select the table that the inbound action applies to.
- Action type: Select "Create" if you want to create a new record.
- Conditions: Define the conditions that an email must meet for the system to perform the inbound action.
4. In the Script field, write a script to define what action should be taken when an email meets the conditions. For example, you can create a new incident and populate the fields with information from the email.
5. Click Submit to save the inbound action.

Here is a sample script for creating a new incident:

javascript
(function runAction(email, email_action, event) {
var gr = new GlideRecord('incident');
gr.initialize();
gr.short_description = email.subject;
gr.description = email.body_text;
gr.insert();
})(email, email_action, event);


Please note that the email address you are forwarding to should be the email address of your ServiceNow instance. Also, make sure that the email server is properly configured to forward emails to your ServiceNow instance.

If the inbound action is still not working, you can debug it by checking the email logs. Navigate to System Logs > Emails > Received to see the emails received by your instance. If the email is not there, it means that the email was not received by your instance. If the email is there but the inbound action was not triggered, it means that the conditions of the inbound action were not met.

For asking ServiceNow-related questions try this :

For a better and more optimistic result, please visit this website. It uses a Chat Generative Pre-Trained Transformer ( GPT ) technology for solving ServiceNow-related issues.

Please visit : https://nowkb.com/home
Our Website :https://nowkb.com/home
Link - https://nowgpt.ai/