Hello,
I'm developing a web app that needs to retrieve leads or contacts from a static marketing list
Eg.
Fetch list members for a selected list
/webapiurl/listmembers?$filter=_listid_value eq d4034a9f-eadb-ea11-a813-000d3a22128b
This works as expected, and returns amongst other data, the entity type "lead" and "listmemberid" (which identifies the lead by it's 'leadid'. How can I include the Lead and email address for example in a single query, keeping in mind that the list may contact thousands of leads.
I've tried various forms of expand, as below;
/webapiurl/listmembers?$filter=_listid_value eq d409ba9f-eadb-ea11-a813-000d3a22c28b$expand=listmemberid($select=leadid,fullname)
but get this message
"Property 'listmemberid' on type 'Microsoft.Dynamics.CRM.listmember' is not a navigation property or complex property. Only navigation properties can be expanded."
What field/column can I use to expand the lead, or is lead expansion not possible in this query?
Is there another way that I can achieve the same result using a single query ?
Any help would be appreciated.