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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

XRM Querying all Lists and the list members

(0) ShareShare
ReportReport
Posted on by 27

I'm looking for a way to query all the lists with the list members in the CRM.

So far, I have seen examples of how to query members for a specific list id.

My outcome should be: List Name and a list of contacts (the list members)

I have the same question (0)
  • Suggested answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    Hi, 

    Please try this fetchXml: 

      
        
        
          
            
          
        
      
    

  • maorlv Profile Picture
    27 on at

    Worked. Any way to get dynamic list into the query? it only returns static lists. 

  • Suggested answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    Yeah, it's a little different for dynamic lists. 

    Please try the fetchXml below: 

      
        
        
        
        
          
        
      
    

    there is a field called query, there's a field called query. It stores the filter used to dynamically build your member list.

    dynamic-list.png

    So Basically, you will retrieve all your dynamic lists. and then fetch your contact using the stored fetchXml. 

    Good luck 

  • meelamri Profile Picture
    13,218 User Group Leader on at

    Hi, any news ?

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 140 Super User 2026 Season 1

#2
Nagaraju_Matta Profile Picture

Nagaraju_Matta 128

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans