web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Email template placeholders in hyperlinks/URLs are not being replaced

(0) ShareShare
ReportReport
Posted on by 10

Hello,

I've made an email template in which I'm embedding a hyperlink to a different webpage containing data from a MS dynamics case. However, it looks like email template placeholders aren't updated in a hyperlink's url. They only seem to work when they're in the email as plain text.

Here's an example of my email template.

At the top there's a {!Case:Case Number;} variable, and under there there's text with the {!Case:Case Number;} in the hyperlink URL.

pastedimage1674124091362v1.png

When I actually use this email template in an email it only seems to replace the top variable, the bottom one will just point to '{!Case:Case Number;}', instead of the actual case number

pastedimage1674124337696v3.png

Is there a way around this?

 

I have the same question (0)
  • Suggested answer
    Amit Katariya007 Profile Picture
    10,409 Super User 2025 Season 2 on at
    RE: Email template placeholders in hyperlinks/URLs are not being replaced

    Do you want to add a Case URL in the email ?

  • Jos Simplesat Profile Picture
    10 on at
    RE: Email template placeholders in hyperlinks/URLs are not being replaced

    Hello Amit,

    Thanks for your response. Not really a case URL, I work for a company that specializes in customer satisfaction surveys. So, for example whenever a case gets marked as resolved in MS dynamics it should send a follow up email with a link to a survey on our website.

    The URL should eventually look something like this:

    api.simplesat.io/.../{!Case:Case Number;}/?source=microsoftdynamics&customer_email={!Case:Email Address;}&customer_first_name={!Contact:First Name;}&customer_last_name={!Contact:Last Name;}

    The idea is to set up a workflow to email this template automatically. The email works, but the placeholders in the URL aren't being replaced with the related ticket/contact information

  • Verified answer
    Amit Katariya007 Profile Picture
    10,409 Super User 2025 Season 2 on at
    RE: Email template placeholders in hyperlinks/URLs are not being replaced

    Here power automate can help. Where you can create this dynamic URL and then add it to the email with the content then send it to the user.

    Send me the email content I will help u to make it. 

  • Jos Simplesat Profile Picture
    10 on at
    RE: Email template placeholders in hyperlinks/URLs are not being replaced

    Hello Amit,

    Thanks, I was just in the process of doing that myself actually. And that seems to have fixed my issue.

    In case anyone else is having this problem:

    Set up a flow in power automate to read a case with the "Microsoft dataverse" connector, then email that with the gmail/outlook365/mail connector.

    In the email body you can select placeholders, and then if you hover your mouse over them it'll display what those are actually called.

    For example, the ticketnumber placeholder is called triggerOutputs()?['body/ticketnumber']

    And this can be copy/pasted quickly in an email by putting it in curly braces and adding an '@' in front of there. So for example @{triggerOutputs()?['body/ticketnumber']} would be the eventual placeholder

    Thanks again,

    Jos

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 67

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 24 Super User 2025 Season 2

#3
mk1329 Profile Picture

mk1329 16

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans