The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Email validation failed: Email body is comprised of invalid HTML in flow designer

nayanmule
Tera Expert

Hi ,

 My flow is failing due to errro caught in the email action step as Email body is comprised of Invalid HTML.

Need help in fixing this.

 

nayanmule_0-1736770895844.png

 

Thanks in Advance

 

2 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron
Tera Patron

@nayanmule 

you can use some regex to remove unwanted HTML

check this link and ensure you do this before using the "Send Email" flow action so that a clean HTML is passed to it

Email validation failed: Email body is comprised of invalid HTML. 

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

@nayanmule 

steps are mentioned here.

check this link and ensure you do this before using the "Send Email" flow action so that a clean HTML is passed to it

Email validation failed: Email body is comprised of invalid HTML. 

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

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@nayanmule 

seems your email body has some unwanted characters

Did you check from where the email body is formed? i.e. which all fields are used in email body

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

Hi Ankur, my email body is composed of many catalog variables which may contain combination of different symbols & regrex.

 

I have checked the post you have mentioned, but unable to understand how I can use that action in my flow designer ? Can you please explain the steps after creating that action ?

@nayanmule 

steps are mentioned here.

check this link and ensure you do this before using the "Send Email" flow action so that a clean HTML is passed to it

Email validation failed: Email body is comprised of invalid HTML. 

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

Ankur Bawiskar
Tera Patron
Tera Patron

@nayanmule 

you can use some regex to remove unwanted HTML

check this link and ensure you do this before using the "Send Email" flow action so that a clean HTML is passed to it

Email validation failed: Email body is comprised of invalid HTML. 

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