Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Add a URL to an Email Body through a Plugin -- how to do this ?

(0) ShareShare
ReportReport
Posted on by 2

This has to be a simple task, but I've yet to find a simple solution.  I'm writing a Plugin to create an Email within CRM that has links, so the body has to be HTML.  Nothing I add will render as HTML, it just presents the HTML code verbatim within the body of the email.  How can I just add an HTML link or anything HTML-wise to an email generated through a Plugin?  I'd rather not do a Template as the content will be quite different based on various factors.   This is in CRM 365 On Prem.

Thanks.

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Add a URL to an Email Body through a Plugin -- how to do this ?

    You can share your code how you are doing it, you should be simply form a html string and it should be rendered as formatted html contents your email.

    for example like this: string urlString="<a href='" + url + "'>Click Here</a>"

  • Suggested answer
    Mahadeo Matre Profile Picture
    Mahadeo Matre 17,021 on at
    RE: Add a URL to an Email Body through a Plugin -- how to do this ?

    Hi,

    you need to add html tag in email body like

    <a href= 'http://www.microsoft.com&#39;>Click Here</a>

    Can you please check following links

    community.dynamics.com/.../180143

    community.dynamics.com/.../164038

    www.powerobjects.com/.../adding-a-hyperlink-to-an-email-template

    dynamicsofdynamicscrm.com/.../quick-tip-add-record-hyperlink-with-text-in-send-email-via-workflow-in-dynamics-crm

    blogs.msdn.microsoft.com/.../adding-crm-urls-to-e-mail-messages-sent-via-workflow

    hope this will help..

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... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,387 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans