static List<Entity> GetCollectionsInStore(CrmServiceClient serviceClient) { FetchExpression query = new FetchExpression(@"<fetch version=""1.0"" output-format= ""xml-platform"" mapping =""logical"" distinct=""true""> <entity name=""collection""> <attribute name=""collectionid"" /> <link-entity name=""collection_store"" from=""collectionid"" to=""collectionid"" intersect=""true""> <all-attributes /> </link-entity> </entity> </fetch> "); var collectionsInStore = new List<Entity>(); collectionsInStore = serviceClient.RetrieveMultiple(query).Entities.ToList(); return collectionsInStore ; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)