Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Email Activity Description field shows data with HTML tags inside my report.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I Recently created a report for my Lead entity which shows all activities within that Lead, however the Description field of the Activity entity shows all the HTML tags. Is there an 'easy' way to only show the plain text, or even better, the text with html but then showed correctly (so actually bold instead of <b></b>) ? 

After some research (https://community.dynamics.com/crm/f/117/t/106774) I found that this issue was known at Microsoft and they fixed it in Rollup 14 back in 2013, though this issue still seems to be present in Dynamics 365 Online 9~

Another solution to this problem would be a JavaScript option with storing the plain text in a separate field by removing all html characters (https://www.crmanswers.net/2013/03/converting-html-e-mail-to-plain-text.html ) though this would mean that I would have to re-save all my activity entries.. 

  • Suggested answer
    Alexandr J.  Profile Picture
    Alexandr J. 246 on at
    RE: Email Activity Description field shows data with HTML tags inside my report.

    Hi Ahmad,

    I encountered this problem a few weeks ago at another entity, problem is (TO)=team and the solution could be to create a distribution sheet at "Active directory domain services" for the team like "cases@companyname.com" where the e-mail recipients will be team members. So you can have owner of case the Team and (TO) will be that distribution sheet.

    Hope this can help you too :)

  • Verified answer
    Mahadeo Matre Profile Picture
    Mahadeo Matre 17,021 on at
    RE: Email Activity Description field shows data with HTML tags inside my report.

    Hi..

    Try downloading your report, open it in visual studio report edition and change column -placeholder / text box properties to "HTML- Interpret HTML tags as Styles" option,

    This will render html tags into plain text and applies styling added into html.

    reporthtml.PNG

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Email Activity Description field shows data with HTML tags inside my report.

    Hi,

    I would suggest you to open a ticket to Microsoft, so that they are aware of this bug. But in the mean time, you can create a plugin or workflow, trigger based on the creation of record, and remove all html tag.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Email Activity Description field shows data with HTML tags inside my report.

    Forgot to upload my example / issue:

    0574.Capture1.PNG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans