简体   繁体   中英

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.

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.

似乎只能从SDK检索审核数据信息,并仅删除基于此的分区

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM