As a best practice in maintaining your Common Data Service environments, it is important to review your audit configurations at the table and column levels to ensure you are only auditing records that are necessary. This will prevent excessive growth of your audit partitions. If you are wondering what I mean by table and columns, see this post.
The problem is easily identifying each and every column within every table. Here is how you do it.
Using the webAPI, create the following query:
If you run this in your browser, it will return a list of tables and columns that are enabled for auditing in JSON format. Now, you need an easy way to read and analyze the data.
Let's see how we can do this with Excel.
First, open a new blank workbook in Excel and select the Data tab
Click Get Data | From Online Services | From Dynamics 365 (online)
Copy and paste your webAPI query from above and click OK
Click Transform Data
Click the expand button next to Attributes
Uncheck IsAuditEnabled and click OK
Finally, click Close & Load
You can do the same thing in Power BI. Check out below:
Open a new Power BI report and select Get Data and click More
Then, select Online Services and Dynamics 365 (online)
Click Connect and paste your webAPI query into the window
Click Transform Data
Click the expansion next to Attributes
Uncheck IsAuditEnabled
Click Close & Apply
Once it refreshes, you will have a full list of tables and columns for your review.
I hope this helps!
Thank you for reading!
Aaron Richards
*This post is locked for comments