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

Notifications

Announcements

No record found.

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,216 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,216 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,216 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

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
Tom_Gioielli Profile Picture

Tom_Gioielli 74 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 31 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans