We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Email body in html field

Vikram3
Tera 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

22 REPLIES 22

Hi @Najmuddin Mohd The trigger is inbound email. We don't have additional comments in that.

shubhamseth
Mega Sage

@Vikram3 

 

Solution Using Data Pills 

In Flow Designer, when using an Inbound Email Trigger, you can directly map the email body and email subject using the data pills available from the trigger.

  1. For the Short Description: Use → Trigger → Email → Subject
  2. For the Description: Use → Trigger → Email → Body

Note: Ensure you are mapping the correct data pill inside the "Set Values" step when creating the Request.

 

 

✔️ If this solves your issue, please mark it as Correct.


✔️ If you found it helpful, please mark it as Helpful.



Shubham Jain


Jinjury
Tera Contributor

@Vikram3

 

I have the same issue. I haven't been able to resolve this using the Email Record > Body or Body Text Data Pill. Have you had any luck with this since you first posed? Thank you!