Email body in html field

Vikram3
Giga Guru

Hi all,

 

I have a flow designer where the trigger is inbound email. I'm creating a request after the trigger where I need to populate the email body in the description field and the subject in the short description. I used the data pill but it didn't work. I even tried the below script which didn't work either.

 

var ritmDesc = fd_data.trigger.email.body;
return ritmDesc;
 
Can anyone help here.
1 ACCEPTED SOLUTION

@Vikram3 

you are using it in wrong way

why are you using script for description?

you can simply set it like this as I shared yesterday

AnkurBawiskar_0-1741067944662.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

21 REPLIES 21

Juhi Poddar
Kilo Patron

Hello @Vikram3 

The flow should look something like this:

Create Request:

JuhiPoddar_0-1741000045386.png

Update description field with email body:

JuhiPoddar_1-1741000134172.png

Update short description field with email subject:

JuhiPoddar_2-1741000188239.png

Hope this helps!

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"

 

Thank You
Juhi Poddar

Hi @Juhi Poddar Yes I did the same. Short description is getting populated with subject whereas the description is not.

Amit Verma
Kilo Patron
Kilo Patron

Hi @Vikram3 

 

The data pill should work. Could you please check on below points:

 

1. Check if your trigger email has body and subject line defined. 

2. If both are available, open the triggered flow context and see what value does your variables hold.

3. Check if your flow is activated or not. If it is not activated, it will not trigger on reception of incoming email.

 

Also, if possible, can you please share some screenshots of your flow execution context?

 

Thanks and Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

1. Check if your trigger email has body and subject line defined. - Yes

2. If both are available, open the triggered flow context and see what value does your variables hold. - Yes it does.

3. Check if your flow is activated or not. If it is not activated, it will not trigger on reception of incoming email. - I'm testing from the flow using test button available in top right corner.

Najmuddin Mohd
Mega Sage

Hello @Vikram3 ,

Can you check by mapping the Description to the Additional comments field?

Regards,
Najmuddin.