- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2021 08:17 AM
I've created a flow that has an action to pull the emails from sys_email table. The Action is working perfectly but when I try to add the information to the Email in the Flow I'm getting the following error:
Has anyone had this and know how to get it to render correctly?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2021 02:15 PM
I figured it out, I put some regex in there to strip out the unwanted HTML code that was causing the problem <head></head><html></html><body></body>.
Works great now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2023 10:31 AM
I was facing similar error while adding email body(inbound) to a email notification.
Invalid HTML error goes away with user of reqExp on email.body_text.
var htmlRegexG = /<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>/g;
email.body_text.replace(htmlRegexG, '');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2024 04:23 PM
Hi, I'm facing the same issue as Stephen, could you please tell me in what exact part do yo put this code in flow designer?
Thanks in advance!
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2025 08:58 AM
Not sure if this will help others..
I set flow variable of string type with script.