Inbound Action: email.body_text and HTML
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2017 07:09 AM
Hello all,
I have an inbound email action set up against the incident table.
I'm populating the 'description' field using this:
current.description = email.body_text;
Standard so far, and I have a number of other inbound actions doing the same thing.
However, in this particular case the description field is being populated with the raw HTML of the inbound email, rather than just the actual text.
Any suggestions on why this might be happening?
Jamie.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2019 03:59 AM
Hi mattmm,
No I never did come up with a full solution to this. In the end I put in a workaround with regex to just grab the parts of the email body we were interested in.
I'm working with a different ServiceNow customer now and I haven't got access to that instance anymore. This isn't an issue I've experienced with any inbound actions on the instance I'm now working on, so I still think it must have been something about those specific emails.
Jamie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2019 09:18 AM
Thanks, I had the same problem and solved it. If you don't mind, I'll paste this solution into my documentation that I make about HTML. I write there about all the problems that I have met while using HTML but also other problems that I found on Google, from other developers. I think it's great to have all the problems with solutions in one place. As soon as I finish the project I'll share it here. If you guys will want to do something similar, use Docsie, for software documentation best practices.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2020 05:26 PM
Can you send me the link where solution is posted.I am currently facing the same issue.
Thanks,
Rajesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2021 05:03 AM
current.description = '<pre __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"><p>' + email.body_html + '</p></pre>';