Reputation: 11
How can we retrieve subject tree values of CRM 2011 into C# windows application and store in in a DropDownList or ComboBox?
Upvotes: 0
Views: 1086
Reputation: 11
You can use a normal RetrieveMultiple:
_serviceProxy.EnableProxyTypes();
_service = (IOrganizationService)_serviceProxy;
_service.RetrieveMultiple(new FetchExpression("fetchxml here"));
You will not be able to use advanced find to search for subject, but the entity exists and can be queried using fetch. Here is an example:
<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>
<entity name='subject'>
<attribute name='title' />
<order attribute='title' descending='false' />
</entity>
</fetch>
You will then have an EntityCollection which you can use in your code as required.
Upvotes: 1
Reputation: 39250
Are you clear on how to perform each of the steps codewise?
Upvotes: 0