Update advanced Settings(AggregateQueryRecordLimit,ExecuteMultipleMaxBatchSize and etc)


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


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;

Thank you,

Sreeni Pavalla


Published by Sreeni Pavalla

Working as a Assistant Technical Manager in Positive Edge Technologies. Having over 11 years of extensive hands-on experience in MS Dynamics CRM 4.0, 2011, 2013, 2015, 2016, Dynamics 365 with over 5 years of experience in CRM Online. You can visit my blog here https://sreenipavalla.me/

6 thoughts on “Update advanced Settings(AggregateQueryRecordLimit,ExecuteMultipleMaxBatchSize and etc)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: