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)

  • meelamri Profile Picture
    13,216 User Group Leader on at
    RE: XRM Querying all Lists and the list members

    Hi, any news ?

  • Suggested answer
    meelamri Profile Picture
    13,216 User Group Leader on at
    RE: XRM Querying all Lists and the list members

    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 

  • maorlv Profile Picture
    27 on at
    RE: XRM Querying all Lists and the list members

    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
    RE: XRM Querying all Lists and the list members

    Hi, 

    Please try this fetchXml: 

      
        
        
          
            
          
        
      
    

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 82 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans