inbound email action

sivamanikan
Tera Contributor

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.

1 ACCEPTED SOLUTION

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

NajmuddinMohd_1-1723223823159.png


Incident created.

NajmuddinMohd_0-1723223756370.png


Mark as helpful, if this helps you.

Regards,
Najmuddin.

 

View solution in original post

5 REPLIES 5

Najmuddin Mohd
Mega Sage

ShubhamGarg
Kilo Sage

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

Najmuddin Mohd
Mega Sage

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.

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;
}