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 :
Customer experience | Sales, Customer Insights,...
Answered

personalization email - dynamic content

(0) ShareShare
ReportReport
Posted on by 386

Hi

Looking to include a content as below

<p>You have purchased:</p> <ul>

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

<li>{{this.name}}</li>

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

Instead of this.name my field is

this.contactid

How can I display the fullname of the contact id instead of GUID ?

thank you

I have the same question (0)
  • Verified answer
    Leah Ju Profile Picture
    Microsoft Employee on at
    RE: personalization email - dynamic content

    Hi slx,

    For-each loops let you step through a collection of records that are related to a specific current record.

    For the example code, you provide a list of all products associated with a given contact. 

    If you want to get the contact full name, you can use the following code directly without For-each loops:

    {{contact.fullname}}

    There are no need to list contact related to these products in the For-each loops, because all contacts in the loop are same.

    pastedimage1667464950962v2.png

    Result:

    pastedimage1667465295716v3.png

  • slx Profile Picture
    386 on at
    RE: personalization email - dynamic content

    Hi Leah

    Thank you for example, it is exactly the issue I am dealing with.

    Is there any way to show the lookup Name instead of the Id/Guid ?

    As per product name "Product X" instead of guid

    Thank you

    slx

  • Suggested answer
    Leah Ju Profile Picture
    Microsoft Employee on at
    RE: personalization email - dynamic content

    Hi slx,

    Unfortunately, you can't show the lookup Name directly.

    Also, you can't get name through the guid indirectly in dynamic content of marketing email:

    You can have, at most, two hops (periods) in your field expressions. 

    The system only supports two levels of the relationship but the information you want to get is the third level of a relationship(Contact > Product > other entity related to product).

  • slx Profile Picture
    386 on at
    RE: personalization email - dynamic content

    Thank you, this is what was found out initially (that guids are included but no lookup name) but I though there is any workaround that I could use (the personalisation feature although interesting it's not very useful due to many constraints depth 1 for relationships, no name/guid)

    Do you know if on a parental relationship as contact - parent_contactid can 'fullname' of the children be extracted ?

    example

    contact A

    parent null

    email email@test

    contact B

    parent contact A

    no email

    contact C

    parent contact A

    no email

    segment/email created for contact A, looking to get children full names

    kind regards

    slx

  • Verified answer
    Leah Ju Profile Picture
    Microsoft Employee on at
    RE: personalization email - dynamic content

    Hi slx,

    It seems that you can't extract child contacts fullname based on parent contact, error will be shown after checking content:

    You just can get parent contact's fullname based on child contact.

    pastedimage1667538871600v3.png

  • slx Profile Picture
    386 on at
    RE: personalization email - dynamic content

    thank you, I got the same issue, I was hoping for an workaround from more experienced user

    let me know how to mark the answer as verified

  • Verified answer
    Leah Ju Profile Picture
    Microsoft Employee on at
    RE: personalization email - dynamic content

    Hi slx,

    For the issue, i would suggest you create a support ticket for professional assistance:

    https://admin.powerplatform.microsoft.com/support 

    And you can click 'Yes' to mark the answer as verified if my answer is helpful.

    pastedimage1667869305863v1.png

    Thanks in advance!:)

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 > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 159

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 152

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 134 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans