Disable Caching for Organization Service In CRM 2011/2013/2015

MS CRM has caching feature but sometimes you want to disable it to get the latest updates,two ways to disable caching
First way - Configuration

Add the following configuration block to the config file of your application


<sectionname="microsoft.xrm.client"type="Microsoft.Xrm.Client.Configuration.CrmSection, Microsoft.Xrm.Client"/>




<addname="Xrm"type="Xrm.XrmServiceContext, Xrm"serviceName="Xrm"/>



<addname="Xrm"type="Microsoft.Xrm.Client.Services.OrganizationService, Microsoft.Xrm.Client"/>


Second Way - Pragmatically


Leave a Reply

Your email address will not be published. Required fields are marked *