Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

Marketing EMail: Dynamic Content

Posted on by 67

Hi Everybody

I'm trying to send dynamic Content to customers in an EMail. As documented https://docs.microsoft.com/en-us/dynamics365/marketing/dynamic-email-content#advanced-dynamic-content it should be possible to access informations stored on other entities linked to contact entity. 

We use Dynamics CRM and as stated in the above example we have the entity contact and linked to it the entity salesorder in a 1:n relationship. I now want to send to the customer some informations that are stored in the salesorder as soon as he signed the contract and the contract has a certain pricelist XY and close-date. 

What I've made so far: I created a Marketing-EMail with the following content:

....
<!-- {{#each contact.contactorders_salesorder_contact}} -->
<li>{{this.name}}</li>
<!-- {{/each}} -->
...
When I test the eMail I get an error saying: The dynamic content has an invalid realtionship or property: {{this.name}} 
Any hint how to solve this?
Kind regards
Frieso

  • Verified answer
    Camilla Larsson Profile Picture
    Camilla Larsson 235 on at
    RE: Marketing EMail: Dynamic Content

    I mean. If you use your prefix in your setting

    <!-- {{#each contact.contactorders_salesorder_contact}} -->

    <li>{{this.name}}</li> (add your prefix before name)  ex. this.prefix.name

    <!-- {{/each}} -->

    KR

    camilla

  • Oseirf Profile Picture
    Oseirf 67 on at
    RE: Marketing EMail: Dynamic Content

    Hello Camilla Larsson

    what do you mean with "your setting". Where can I set this?

    Kind Regards

    Frieso

  • Eduard Brown Profile Picture
    Eduard Brown on at
    RE: Marketing EMail: Dynamic Content

    Hi Oseirf - Did Camilla's suggestion work for you?

    -Eddy

  • Suggested answer
    Camilla Larsson Profile Picture
    Camilla Larsson 235 on at
    RE: Marketing EMail: Dynamic Content

    Hi,

    try to add your prefix into the "this setting"

    Ex.

    {{this.new_soknadsid}}

    Kind Regards

    Camilla

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans