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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Marketing list - Manage dynamic List members

(0) ShareShare
ReportReport
Posted on by 200

Hi, 

I'm working on importing Marketing lists.

Is it possible de create via c# the dynamic List Members criteria ?  

273164283_5F00_807411937326872_5F00_8289607116699095210_5F00_n.png

Thanks,

KR,
Hicham

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    You can create your lists using C#. In order to do that you will have to:

    1. Populate "type" field with true value (that corresponds to Dynamic list).

    2. Populate "query" field with the FetchXml query that describes your filtering. You can use "FetchXml" builder or "Advanced Find" to build the query you need and get the FetchXml.

  • Hicham GRC Profile Picture
    200 on at

    Hi Andrew,

    1 - I populate the field Type with the value "Dynamic".

    I imported static lists with members but I also need to create dynamic Marketing Lists based on criteria that I want to create using the batch.

    2 - How to populate the query ? I didn't find any documentation or article about this.

    - Which entity to target ?

    - Do you have a sample or a link ?  

    Thanks,

    KR,

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Search engines are your best friends ;) Here is what I found:

    stackoverflow.com/.../creating-a-marketing-list-in-crm-dynamics-2013

    mubashersharif.blogspot.com/.../create-dynamic-marketing-list-in-crm.html

  • Hicham GRC Profile Picture
    200 on at

    I did some reseache but didn't come accross theses topics :\

    Thanks, it works fine after populating the fields : type, createdfromcode and query.

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    I'm glad it solved your issue!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#2
ManoVerse Profile Picture

ManoVerse 55 Super User 2026 Season 1

#2
ManoVerse Profile Picture

ManoVerse 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans