• Home
  • About Us
  • Contact Us
  • Privacy Policy
  • Special Offers
Business Intelligence Info
  • Business Intelligence
    • BI News and Info
    • Big Data
    • Mobile and Cloud
    • Self-Service BI
  • CRM
    • CRM News and Info
    • InfusionSoft
    • Microsoft Dynamics CRM
    • NetSuite
    • OnContact
    • Salesforce
    • Workbooks
  • Data Mining
    • Pentaho
    • Sisense
    • Tableau
    • TIBCO Spotfire
  • Data Warehousing
    • DWH News and Info
    • IBM DB2
    • Microsoft SQL Server
    • Oracle
    • Teradata
  • Predictive Analytics
    • FICO
    • KNIME
    • Mathematica
    • Matlab
    • Minitab
    • RapidMiner
    • Revolution
    • SAP
    • SAS/SPSS
  • Humor

Finding all audit enabled tables and columns for your Common Data Service environment

November 17, 2020   Microsoft Dynamics CRM

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:

https://orgname.crm.dynamics.com/api/data/v9.1/EntityDefinitions?$ select=LogicalName,IsAuditEnabled&$ filter=IsAuditEnabled/Value%20eq%20true&$ expand=Attributes($ select=LogicalName,IsAuditEnabled;$ filter=IsAuditEnabled/Value%20eq%20true)

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)

0336.pastedimage1605292203930v1 Finding all audit enabled tables and columns for your Common Data Service environment

Copy and paste your webAPI query from above and click OK

2402.pastedimage1605292386700v2 Finding all audit enabled tables and columns for your Common Data Service environment

Click Transform Data

5226.pastedimage1605292426512v3 Finding all audit enabled tables and columns for your Common Data Service environment

Click the expand button next to Attributes

0028.pastedimage1605292495188v4 Finding all audit enabled tables and columns for your Common Data Service environment

Uncheck IsAuditEnabled and click OK

4743.pastedimage1605292531049v5 Finding all audit enabled tables and columns for your Common Data Service environment

Finally, click Close & Load

7002.pastedimage1605292551484v6 Finding all audit enabled tables and columns for your Common Data Service environment

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

6087.pastedimage1605292797714v7 Finding all audit enabled tables and columns for your Common Data Service environment

Then, select Online Services and Dynamics 365 (online)

1881.pastedimage1605292831301v8 Finding all audit enabled tables and columns for your Common Data Service environment

Click Connect and paste your webAPI query into the window

1055.pastedimage1605292874686v9 Finding all audit enabled tables and columns for your Common Data Service environment

Click Transform Data

5482.pastedimage1605292901900v10 Finding all audit enabled tables and columns for your Common Data Service environment

Click the expansion next to Attributes

5123.pastedimage1605292940439v11 Finding all audit enabled tables and columns for your Common Data Service environment

Uncheck IsAuditEnabled

0550.pastedimage1605292957861v12 Finding all audit enabled tables and columns for your Common Data Service environment

Click Close & Apply

4452.pastedimage1605292974719v13 Finding all audit enabled tables and columns for your Common Data Service environment

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

Let’s block ads! (Why?)

Dynamics 365 Customer Engagement in the Field

Audit, columns, Common, data, enabled..., Environment, finding, service, Tables
  • Recent Posts

    • WHEN IDEOLOGY TRUMPS TRUTH
    • New Customer Experience Needs and Commerce Trends for 2021
    • A data transformation problem in SQL and Scala: Dovetailing declarative solutions
    • George Wallace Joins Laverne Cox For Comedy Titled ‘Clean Slate’
    • How Microsoft Azure DevOps and Dynamics 365 CRM Work Together to Improve Service Responsiveness
  • Categories

  • Archives

    • February 2021
    • January 2021
    • December 2020
    • November 2020
    • October 2020
    • September 2020
    • August 2020
    • July 2020
    • June 2020
    • May 2020
    • April 2020
    • March 2020
    • February 2020
    • January 2020
    • December 2019
    • November 2019
    • October 2019
    • September 2019
    • August 2019
    • July 2019
    • June 2019
    • May 2019
    • April 2019
    • March 2019
    • February 2019
    • January 2019
    • December 2018
    • November 2018
    • October 2018
    • September 2018
    • August 2018
    • July 2018
    • June 2018
    • May 2018
    • April 2018
    • March 2018
    • February 2018
    • January 2018
    • December 2017
    • November 2017
    • October 2017
    • September 2017
    • August 2017
    • July 2017
    • June 2017
    • May 2017
    • April 2017
    • March 2017
    • February 2017
    • January 2017
    • December 2016
    • November 2016
    • October 2016
    • September 2016
    • August 2016
    • July 2016
    • June 2016
    • May 2016
    • April 2016
    • March 2016
    • February 2016
    • January 2016
    • December 2015
    • November 2015
    • October 2015
    • September 2015
    • August 2015
    • July 2015
    • June 2015
    • May 2015
    • April 2015
    • March 2015
    • February 2015
    • January 2015
    • December 2014
    • November 2014
© 2021 Business Intelligence Info
Power BI Training | G Com Solutions Limited