Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Building a hyperlink in email template adds span tags around dynamics text

(1) ShareShare
ReportReport
Posted on by 43
Hello,
 
I have an email template that I want to use by inserting in an email that is sent out from Dynamics.
 
The email template has some generic text, thanking the customer etc.., and at the very end I am dynamically building a hyperlink that has the name of the person and case # in the URL.
These two placeholders are inserted through the Insert Dynamic Text button in the email template.
The hyperlink is build OK and the values for the two placeholders are showing as well except that around these two values a <span></span> is added before and after. When the user click the URL Chrome opens with a blank page but if the user manually removes the <span> and </span> in the URL all works fine.
 
1-2 month ago this worked with no issues and suddenly it seems that it starting doing this.
 
Templates that we have made 1-2 month ago and did not touch since are not affected by this behavior,
 
It looked as if something changed in the email template editor.
Incorrect URL
https://nam.dcv.ms/99999999?lang=en-us&ctx=%7B%22Case'%3A'<span>FD-INC-99999</span>'%2C'First%20Name'%3A'<span>Joe Smith</span>'%7D
Removing spans makes it work
https://nam.dcv.ms/99999999?lang=en-us&ctx=%7B%22Case'%3A'FD-INC-99999'%2C'First%20Name'%3A'oe Smith'%7D
 
Thank you for your suggestions
Categories:
  • RP-16042019-0 Profile Picture
    12 on at
    Building a hyperlink in email template adds span tags around dynamics text
    Hi Team Microsoft.
     
    Wondering if there is any solution to what 'FM-22040757-0' posted a couple days ago?  We are noticing <span> tags within our link that we embed in our email template within Dynamics customer service app. (the link is not rendering). 
     
    Thank you.
    Russ Pereira
  • FM-22040757-0 Profile Picture
    43 on at
    Building a hyperlink in email template adds span tags around dynamics text
    Hello,
     
    I am experiencing this issue in Customer Service and Sales Apps.
  • André Arnaud de Calavon Profile Picture
    294,903 Super User 2025 Season 1 on at
    Building a hyperlink in email template adds span tags around dynamics text
    Hi,
     
    Can you tell us what Dynamics 365 application this question is related to? There are several different solutions in the Dynamics 365 family, like: Sales, Finance, Supply Chain Management, Project Operations, and Business Central. 

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 149 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 61 Most Valuable Professional

#3
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 53 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans