Inbound Action : Email body

mustaphafilahy
Tera Contributor

Hi

 

I would like to create an incident from an email  using the Inbound Action

so in the email body , i have this info :

 

 

Details
Name....................AVAS Instance not available
Start Time..............04.07.2024 
End Time................04.07.2024 
TEST Object..........VAR1~AVAS~ TEST02


So , i would like to create an incident where the short description should be :

AVAS Instance not available - TEST Object..........VAR1~AVAS.

 

only VAR1  is not static in the email 

 

Best regards

 

 

 

6 REPLIES 6

Runjay Patel
Giga Sage

Hi @mustaphafilahy ,

 

Email body should follow below format to read the data from body.

Ask to change

from 

Name....................AVAS Instance not available
Start Time..............04.07.2024 
End Time................04.07.2024 
TEST Object..........VAR1~AVAS~ TEST02

 

To

 

Name: AVAS Instance not available
Start Time: 04.07.2024 
End Time: 04.07.2024 
TEST Object: TEST02

 

In you inbound action script use below code

To read name: email.body.name;

To read start time: email.body.start_time;

To read Test Object : email.body.test_object;

 

set the these value in your target field.

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

 

 

 

 

mustaphafilahy
Tera Contributor

Hi Runjay

 

thank you for your update , but VAR1 is the most important information that i need in the short description 

 

regards

Hi @mustaphafilahy ,

 

So whats the issue? you will get the value and set it to short description.

so for " TEST Object..........VAR1~AVAS~ TEST02 " , i would like to remove  TEST02 from the short description

 

regards