.net - Microsoft CRM, how do I get all the members of a list using CrmService? -
I am developing an appliance that needs to read data from Microsoft CRM using the webservice API.
I need to get all the members of a marketing list. I can get all the lists in the system using the webservice, but I can not get members of a list. This is the query that I can run, but it does not return any member:
query expression qe = new question expression (); Qe.EntityName = "Contact"; Qe.ColumnSet = new AllColumns (); Var linkContact = New LinkType {LinkFromEntityName = "Contact", LinkFormatNineName = "Contact", LinkToAntName = "ListList", LinkTokAttributeNameName = "AntidentID"}; Var linkList = New LinkType {LinkFromEntityName = "listmember", linkformAttitNitname = "antineadId", linkTontTNN = "list", linkToatietitName = "listed"}; Var CE = New Condition Expression {AttributeName = "Listed", Operator = ConditionOperator. Aqual, value = new object [] {list.listid.Value}}; LinkList.LinkCriteria = New Filter Expression {conditions = new [] {CE}}; LinkContact.LinkEntities = New [] {linkList}; Qe.LinkEntities = new [] {linkContact}; Var member = service.RetrieveMultiple (qe); Console.lightline ("member of {0}:", list.listname); Assert.IsTrue (members.BusinessEntities.Any ()); Agratch (Contact Lead in Business. Commodities) Console WrightLine (lead.fullname);
How do I get a list of members using the webservice API?
I'm guessing maybe it's still thought, but anyway ...
var linkList = new link entity {LinkFromEntityName = "listmember", link formatting name = "listid", LinkToEntityName = "list", LinkToAttributeName = "listid"};
The related row is:
LinkFromAttributeName = "listid", versus "Antidentide"
Comments
Post a Comment