How to copy body into description in Email Inbound Action?

Ankit Kumar6
Tera Contributor

I have an inbound action where I need to put the email body into the Incident description field.  How can I get it.

I am getting below format in email body and it also contain Hyperlink.

 

AnkitKumar6_0-1727416299645.png

 

5 REPLIES 5

Animesh Das2
Mega Sage

Hi @Ankit Kumar6 ,

 

Under 'Actions' tab simply try add the below line in the script similar to where the other fields of incident table getting set in the script.

current.description email.body_text;
 
It will set the description in plain text format.
 

If this address your question, please mark this response correct by clicking on Accept as Solution and/or Kudos.

You may mark this helpful as well if it helps you.

Thanks, 

Animesh Das

Animesh Das2
Mega Sage

Hi @Ankit Kumar6 ,

 

If you got chance to check the solution provided by me and help you anyways, please mark this helpful or if it addresses your query correctly please Accept as Solution so that it helps the community for other users as well.

 

Otherwise share if you are facing any challenges there.

 

Thanks,

Animesh Das

@Animesh Das2 

Sorry Animesh your suggestion doesn't help it print the HTML code in description. 

Hi @Ankit ,

'It should have worked, however, it did not work meaning the email structure from that particular sender is somehow different depending upon the email content type.

 

Can you please try 'current.description = email.body' if that works for you?

 

You can have a look at the below KB for more information on email content type.

KB0681056 

 

If you still can't get the email body then I can think of a workaround to use regular expression (regex) to filter the part of the incoming email (HTML format) you are interested in.

 

If this address your question, please mark this response correct by clicking on Accept as Solution and/or Kudos.

You may mark this helpful as well if it helps you.

Thanks, 

Animesh Das