Skip to main content

Notifications

Announcements

No record found.

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

list the segments that have a specific member

Posted on by 15

I'm trying to list the segments that have a specific member.
I can't get it to run.

For now I am trying:

Segments - name (contains data)
Contacts (Segment Member)
email contains "xxx"

Thank you in advance for your answers

  • klosb Profile Picture
    klosb 15 on at
    RE: list the segments that have a specific member

    Hi Clofly

    Thank you for your answer.

    I will try to follow your instructions.

  • Suggested answer
    cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: list the segments that have a specific member

    Hi klosb,

    Unlike marketing list, there is no association between contacts and segment.

    In other word, members are queried through a mechanism called "Segment Query", however, the process couldn't be reversed.(It's a one-way process.)

    Segment -> contacts ✓

    Contacts -> segment ✕

    To give a more specific example: In Contact form, when we click "Add to segment" button, the popup dialog will just list all static segments, even if the contact was added to any of these segments.

    Therefore, the only workaround would be achieving it programmatically: 

    1. Create a list to save the segments that meet the filter criteria。

    2. For each segment, retrieve segment members with segment API.

    https://docs.microsoft.com/en-us/dynamics365/marketing/developer/extend-segments

    3. Loop through members collection returned from API request, If a member has specific xxx email, then put the current segment to the list. 

    Regards,

    Clofly

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans