E-mail inbound

User_267
Tera Contributor

Hi experts,

We are having a requirement like we will be sending email with subject as "test".

Later we get a response and the response should be in Below format:

From:xyz@gmail.com

Date:

To:123@gmail.com

Subject: you email with test has been sent successfully to 123@gmail.com

Previously when we send email we included test as subject ,now that subject test has to be included in response mail (see subject format).

How to configure inbound  for this?

[current.comments = "reply from: " + email.origemail + "\n\n" + email.body_text;

current.update();]

I found the above script but it just gives from ,to and date, but i need subject: your email with test has been successfully sent. How to include this? 

 

 

 

 

 

1 ACCEPTED SOLUTION

AshishKM
Kilo Patron
Kilo Patron

Hi @User_267 , 

Please confirm about the first mail send via outlook to ServiceNow ( with Subject : Test ) and ServiceNow inbound action is processing that request and then .. what kind of record it is creating and sedning response with new ( updated ) subject line. 

 

For incoming email ( inbound Action ) you can use email.subject to read email subject.

 

The second email from ServiceNow to user's email , you  must have some condition based notification and that notification has subject line. 

 

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

View solution in original post

2 REPLIES 2

AshishKM
Kilo Patron
Kilo Patron

Hi @User_267 , 

Please confirm about the first mail send via outlook to ServiceNow ( with Subject : Test ) and ServiceNow inbound action is processing that request and then .. what kind of record it is creating and sedning response with new ( updated ) subject line. 

 

For incoming email ( inbound Action ) you can use email.subject to read email subject.

 

The second email from ServiceNow to user's email , you  must have some condition based notification and that notification has subject line. 

 

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

When we submit catalog item ,The first email wil be automatically sent from servicenow to an email address(xyz@gmail.com) with subject line "test".

And then for this email they will be sending an response .

The response should be in this format.

 

From:123@gmail.com

To:servicenow

Date:

Subject: your email with subject test has been successfully sent to email id.

As this is a response but it shouldn't be like reply(prefix: re) .it should be same how I given in above subject line.

 

And this has to be captured in ritm worknotes