Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Access Marketing Segment Query Language

Posted on by 75

Hey Guys,

we are currently facing an topic with the segmentation in D365 Marketing.

Here ist the case: We have contacts with a 1:n related entity (e.g. Subscriptions or Subscriptionservices), we can select the Subscriptionservices related with the contacts based on specific criteria. For Example

"Give me every contact with a unsubscribed Subscription with Cancellation reason = XXX", so we get a Subset of our contacts, later in the customer journey we only want to write to the contacts for the specific (and previously segmented) subscription service. But the customer journey doesn't know by which criteria we have segmented before and just takes all contacts from the segment and writes him to each of his subscription services (A Contact can have more than one Subscriptionservice, but not all of them are relevant for the current marketing campaign).

Question: Is there any way to solve this issue, my first idea is that I will create a Parser for the Query Language used in the segments and store this sepratly, but maybe someone has a better idea or tools?

Best regards Sven

  • Suggested answer
    Nya Profile Picture
    Nya 29,056 on at
    RE: Access Marketing Segment Query Language

    Hi,

    Your description is a little difficult to understand.

    Do you mean that you want to send an email to these Contacts via Customer Journey and that the content of the email contains the Subscription as a filter in Segment?

     

    For example, Contact has a 1: N relationship with Account as the Primary Contact of Account.

    I created a Segment to find out the Primary Contacts of the Accounts whose name equals a certain value.

    Then I created an email and inserted a Code block into it.

     pastedimage1616134663077v1.png

    Here is the code:

     

    Account:

      {{#each contact.account_contact_primarycontactid}} {{#if (eq this.name 'Acc 01')}}
    • {{this.name}}
    • {{/if}} {{/each}}

    Then I got the account from the segment whose primary contact is the receiver of the email.

     pastedimage1616134669032v2.png

    You can set the subscriptions in the same way.

     

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Nya

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans