Search code examples
c#.netdynamics-crmdynamics-crm-2013audit

Is it possible to disable audit programmatically in Dynamics CRM (2013/2016)?


Is there an option to globally disable auditing using the CRM service? It can be done via web interface but I need to do it programmatically.

Thanks.


Solution

  • Looks like you should try making a web service call to update the IsAuditEnabled field of the Organization record.

    Configure entities and attributes for auditing

    You enable or disable auditing at the organization level by setting a particular attribute value of the organization record.

    Organization entity messages and methods

    An organization represents the top level of the Microsoft Dynamics CRM business hierarchy. The organization can be a specific business, holding company, or corporation. The schema name for this entity is Organization.

    Organization entity attributes

    IsAuditEnabled - Is Auditing Enabled - Boolean - Indicates whether auditing of changes is enabled.