ServiceNow Learning 52: Send Email action doesn't support ALL HTML Content Body.

Shamma Negi
Kilo Sage
Kilo Sage

Hi All,

 

I have recently tried to trigger email from "Send Email" action from Flow Designer however got to know that it doesn't support HTML Content Body in it and throws the below error message:

 

ShammaSalhotra_0-1699026390160.png

 

Workaround is you convert the HTML Body to String or text in some action and then pass that to body in this action.

 My use case was to get the latest reply on this case and then sends the reply latest comment as a body to Case Manager so I used below action:

 

Get Latest Response Text from Email

 

Then I passed the output of this action in the body of my Send Email Action.

This worked for me and solved my issue.

 

Hope it helps you.

I hope this article helpful. Please mark it as helpful and bookmark if you like it.

 

Thanks,

Shamma

 

 

Regards,Shamma Negi
3 REPLIES 3

-O-
Kilo Patron
Kilo Patron

Of course it supports HTML Content Body, you just misinterpret the error message.

It does not say that it does not support HTML, but that your HTML is not valid.

Yeah I tried with multiple HTML body with basic HTML also. It throws the same message. If someone wants to use this action with heavy HTML content which uses tabular structure and valid signature it throws this error however if I use the same HTML in notification body it runs perfectly. 

 

So yeah it might support HTML but in my case it doesn't support none of my HTML bodies. Also, it doesn't tell me which part of my HTML body is incorrect. 

 

I would probably search more on support articles and find more insight and add it here. 

 

Thanks for your reply

 

Thanks, 

Shamma

Regards,Shamma Negi

Shamma Negi
Kilo Sage
Kilo Sage

I am facing the same as Stephen is in the below email trail. I am still finding the better solution so that it accepts all HTML

https://www.servicenow.com/community/developer-forum/flow-design-giving-email-validation-failed-emai...

 

Regards,Shamma Negi