Skip to main content

Notifications

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

Marketing EMail: Dynamic Content

(0) ShareShare
ReportReport
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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans