Where is a good tutorial/guide on how to use the parameters for a C# CRM SDK OrganizationRequest parameter collection?
Here’s my code so far:
CrmConnection connection = CrmConnection.Parse("hidden");
OrganizationService service = new OrganizationService(connection);
OrganizationRequest request = new OrganizationRequest("requestname");
/* ... ? */
How would I modify request so when I execute it with service I get the number of contacts?
According to OrganizationRequest class description, it was not designed to work directly with this class, but you can if you want.
Actually you should specify not only parameter collection, but also request name. Full list of available request names was provided here. Depending what request name you need you should specify appropriate parameters collection. Actually there is no complete reference for parameters collection.
Another question is how to retrieve count of contacts. Here you have two options. The first one is not related to OrganizationRequest, but you have to use organization context and linq queries. Sample was described here. Another option is using of ExecuteFetch message request name.