- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2024 04:49 AM
HI ALl,
getting inbound email action with below format:
EMail Body:
Employee Name: XXXXXX;
Employee number: 123456;
i created flow designer for using inbound email action,
created 2 variables :
name: need to pass inbound email "Employee Name".
NUmber : need to pass inbound email "Employee number".
how to set this variable values using inbound email body value;
Regards,
Siva mani.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2024 10:18 AM
Hi @sivamanikan
The body of the email will be same as you added in the email.
But, when we assign in the inbound action, we define using '_' if there is space in between.
I tried it personally now.
Inbound action
Incident created.
Mark as helpful, if this helps you.
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 12:48 AM
HI @sivamanikan ,
The following link can help you.
https://www.servicenow.com/community/developer-forum/parsing-email-body-with-inbound-email-flows/m-p...
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 02:31 AM
Hello @sivamanikan ,
To answer generically, you can create an Inbound email action or Inbound Email flows to fulfiul this requirement.
In your scenario, you can use RegEx (Regular Expressions) to pick values from Email body.
Hope it helps.
Regards,
Shubham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 03:20 AM
Hi @sivamanikan
If you are using the Inbound email action and the email body contains Employee number:12345,
then the following code can help you,
if (email.body.employee_number != undefined)
{
current.short_description = email.body.employee_number;
}
It sets the number to the short description of the field.
Reference link: https://docs.servicenow.com/bundle/washingtondc-platform-administration/page/administer/notification...
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 08:12 AM
Hi @Najmuddin Mohd ,
Employee number: 123456;
employee number middle space is not automatically converting to "_ " .
if (email.body.employee_number != undefined)
{
current.short_description = email.body.employee_number;
}