Skip to main content

Notifications

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

list the segments that have a specific member

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

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,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,817 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans