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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Marketing E-Mail Dynamic Content - Display related cases

(0) ShareShare
ReportReport
Posted on by 2

Hi,

we are using the entity incident (Service Tickets), it is enabled within the dataset configuration and selectable via segments and dynamics content.

,Yet I am struggling to display all tickets from the relevant contact.

pastedimage1648546098897v2.png

E.g.

{{#each contact.incident_contact_primarycontactid}}{{this.ticketnumber}}
{{/each}}

Since I am only able to select relations that point to the second entity (incident | Service Ticket) ultimately leading to the related contact e.g. pastedimage1648546179890v3.png pastedimage1648546036538v1.png

I am not sure how to display related tickets from the contact. Shouldn´t there be a selection for Contact => Service Ticket (Contact) in order to select fields such as ticketnumber?

Best regards

I have the same question (0)
  • Suggested answer
    Nya Profile Picture
    29,060 on at

    Hi,

    It depends on the role of the contact in the case (Service Ticket).

    For example, if you mean that the contact is the Customer of the case, 

    pastedimage1648800116961v2.png

    the relationship between them is this one.

    pastedimage1648800160628v3.png

    So the code should be:

      {{#each contact.incident_contact_customerid}}{{this.ticketnumber}} {{/each}}

    And the ticket number can be shown in the email.

    pastedimage1648800215693v4.png

  • Newmayer2384 Profile Picture
    2 on at

    Hi Nya great that worked. Now If I want to get specific tickets (not in the right order they could be displayed random) based on attributes on the ticket record, I could achieve it with IF-statements is that right?

    For example tickets that were created/last modified 6 days ago?

    Best regards and THANK YOU as always

  • Suggested answer
    Nya Profile Picture
    29,060 on at

    Hi,

    It has not been supported yet unfortunately.

    You can post your proposal in Ideas forum.

    With requirements like this increasing, it may well be released in the future.

  • Newmayer2384 Profile Picture
    2 on at

    Ok so I am able to display ALL cases, yet I cannot filter them or dynamically display them based on e.g. modified on date

  • Suggested answer
    Nya Profile Picture
    29,060 on at

    Hi,

    Yes. The filter can be set on some text fields but for date and time fields, it cannot be done.

    Please refer to the following section:

    Conditional statements and comparisons

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Pallavi Phade Profile Picture

Pallavi Phade 101

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 69 Super User 2025 Season 2

#3
TAHER Mehdi Profile Picture

TAHER Mehdi 58

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans