Inbound Action : Email body
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2024 03:25 AM
Hi
I would like to create an incident from an email using the Inbound Action
so in the email body , i have this info :
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2024 04:06 AM
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
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2024 07:30 AM
Hi Runjay
thank you for your update , but VAR1 is the most important information that i need in the short description
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2024 07:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2024 07:49 AM
so for " TEST Object..........VAR1~AVAS~ TEST02 " , i would like to remove TEST02 from the short description
regards