How to auto populate incident description field with Email body upon incident creation from Email?

JordyZ
Mega Sage

Hi,

 

I'd like the description field of the incident form to be auto populated based on the body of the email which the incident is created from.

 

How do I go about this?

 

Thanks in advance.

1 ACCEPTED SOLUTION

priyasunku
Kilo Sage

Hi @JordyZ 

 

you can write below code in inbound email 

 

current.description = email.body_text;

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful

View solution in original post

15 REPLIES 15

@JordyZ  I could see you are using a customized Description field. Please check the backend value of your description and use it.

 

like current.u_description 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful

Hi @priyasunku ,

JordyZ_0-1677160957788.png

 

This is the description field I use, it should not be customized right?

@JordyZ 

 

are you creating an incident or updating it and may I know where you are mapping all other fields like short description and caller. 

 

Description mapping should work i will do it in my PDI and let you know.

Hi @priyasunku , I've found the problem!

JordyZ_0-1677161699362.png

For some reason I had to delete the function (that's OOB) from the code.

JordyZ_1-1677161756319.png

And now it works.

 

Thanks again for helping me out!

 

 

@priyasunku one more question, sorry for bothering.

JordyZ_0-1677153986829.png

It's okay that "field actions" is empty?

Thanks!