Update advanced Settings(AggregateQueryRecordLimit,ExecuteMultipleMaxBatchSize and etc)

Hi,

Here is the way to Update advanced settings. Fro example: Default batch size of Execute multiple request is 1000, In some cases we may need to update to more than 1000.

It can be updated through

UpdateAdvancedSettingsRequest

Here is the complete code which can help you.

DeploymentServiceClient service = Microsoft.Xrm.Sdk.Deployment.Proxy.ProxyClientHelper.CreateClient(new Uri(“http://crmtest/XRMDeployment/2011/Deployment.svc”));

RetrieveAdvancedSettingsRequest request3 = new RetrieveAdvancedSettingsRequest()
{
ConfigurationEntityName = “Deployment”, ColumnSet = new ColumnSet(false)
};
RetrieveAdvancedSettingsResponse response3 = (RetrieveAdvancedSettingsResponse)service.Execute(request3);
ConfigurationEntity configEntity = response3.Entity;

ConfigurationEntity entity = new ConfigurationEntity();
entity.LogicalName = “Deployment”;
entity.Attributes = new Microsoft.Xrm.Sdk.DeploymentAttributeCollection();
entity.Attributes.Add(new KeyValuePair<string, object>(“ExecuteMultipleMaxBatchSize”, 50000));

UpdateAdvancedSettingsRequest request2 = new UpdateAdvancedSettingsRequest();
request2.Entity = entity;
service.Execute(request2);

Thank you,

Sreeni Pavalla