You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powerapps-docs/developer/common-data-service/retrieve-and-delete-the-history-of-audited-data-changes.md
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,13 @@
2
2
title: "Retrieve and delete the history of audited data changes (Common Data Service) | Microsoft Docs"# Intent and product brand in a unique string of 43-59 chars including spaces
3
3
description: "Programmatically retrieve the audit change history or delete audit records."# 115-145 characters including spaces. This abstract displays in the search result.
4
4
ms.custom: ""
5
-
ms.date: 10/31/2018
5
+
ms.date: 10/14/2020
6
6
ms.reviewer: "pehecke"
7
7
ms.service: powerapps
8
8
ms.topic: "article"
9
-
author: "paulliew"# GitHub ID
10
-
ms.author: "jdaly"# MSFT alias of Microsoft employees only
11
-
manager: "ryjones"# MSFT alias of manager or PM counterpart
9
+
author: "Bluebear73"# GitHub ID
10
+
ms.author: "munzinge"# MSFT alias of Microsoft employees only
11
+
manager: "mayadu"# MSFT alias of manager or PM counterpart
12
12
search.audienceType:
13
13
- developer
14
14
search.app:
@@ -19,12 +19,16 @@ search.app:
19
19
20
20
After auditing is enabled and data changes are made to those entities and attributes being audited, you can proceed to obtain the data change history. Optionally, you can delete the audit records after you review the change history. Follow the sample code link at the end of this topic for more information.
21
21
22
-
## Retrieve the change history
23
-
22
+
## Retrieve the change history
23
+
24
24
There are several messages requests that can be used to retrieve the audit change history. These requests are differentiated by the nature of what they retrieve.
25
25
<!-- Bug 696490 should make the Audit entity public again: Refer to the topic [Audit Entity](entities/audit.md) for a list of message requests related to auditing. -->
26
26
Refer to the sample link at the end of this topic for sample code that demonstrates some of these change history message requests.
27
27
28
+
> [!IMPORTANT]
29
+
> Large attribute values, such as **Email** description or **Annotations** are limited (capped) to 5KB or ~5,000 characters in length. A capped attribute value can be recognized by three dots at the end of the text, for example “lorem ipsum, lorem ip…”.
30
+
> Going forward, **Audit** entity records will be stored in Common Data Service’s log storage. Linking audit with other entities using FetchXML will no longer be possible.
31
+
28
32
## Delete the change history for a record
29
33
30
34
Use the <xref:Microsoft.Crm.Sdk.Messages.DeleteRecordChangeHistoryRequest> message to delete all the audit change history records for a particular record. This lets you delete the audit change history for a record instead of deleting all the audit records for a date range, which is covered in the next section. To delete the audit change history for a record, you must have a security role with the **prvDeleteRecordChangeHistory** privilege or be a System Administrator.
0 commit comments