I am looking to retrieve the Contacts that are members of a Dynamics 365 CE marketing list. Can someone help point me in the right direction on this? I can connect to the CDS instance no problem and I can see Contacts and Marketing Lists, I just don't know the ODATA or other syntax magic to get the members of the particular Marketing List that I desire. Thanks.
Solved! Go to Solution.
@smoupre - The simplest method is to create a flow from within a Solution using the "Common Data Service (current environment)" option. I did a test on this and it work perfectly. See points and screen shots below.
Note: I'm not sure what your trigger is to kick off the flow. In my screen shots below, I just used the Flow Button to start it.
Dynamics 365 - Advanced Find
Power Automate - Filter with Fetch Xml
I tested the output of this by putting the values into an HTML table:
Power Automate - Output within HTML Table
Here is the resulting output within the HTML table:
Power Automate - HTML Table output
Hi @smoupre,
You can refer to this document that uses filter expressions in OData URIs to limit the results that are returned in CDS.
https://docs.microsoft.com/en-us/dynamics-nav/using-filter-expressions-in-odata-uris
For example, I want to get the member name is equal to "Michel", please notice that the dynamic content should have two single quotes after the operator:
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks @v-litu-msft. So what property then do I filter on for the marketing lists that a Contact is a member of?
@smoupre - The simplest method is to create a flow from within a Solution using the "Common Data Service (current environment)" option. I did a test on this and it work perfectly. See points and screen shots below.
Note: I'm not sure what your trigger is to kick off the flow. In my screen shots below, I just used the Flow Button to start it.
Dynamics 365 - Advanced Find
Power Automate - Filter with Fetch Xml
I tested the output of this by putting the values into an HTML table:
Power Automate - Output within HTML Table
Here is the resulting output within the HTML table:
Power Automate - HTML Table output
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.