Friday, July 17, 2009

Speedup Microsoft CrmService

The CrmService has huge amount of functions. One of them is the execute method, which delivers the possibility to update, retrieve, retrieveMultiple and so on.

For best performance, you should NOT use the execute method for default actions like retrieve create, update et cetera. Therefor you should use the specific functions, which are also provided from the CrmService.

BusinessCollection taskCollection = crmservice.retrieveMultiple(queryExpr);

RetrieveMultipleResponse retrMultiResponse = (RetrieveMultipleResponse) crmservice.execute(retrMultiRequest);

For specials like opening activities, you must use the execute method.

Alongside you should only call the service, if there is no other option. If you have to calculate huge amounts of crm data, create caching objects to avoid more than one call for the same set of data.

Kind regards

Only available if you are using the WSDL-Proxy Classes.

No comments:

Post a Comment