Showing results for 
Search instead for 
Did you mean: 
Advocate IV
Advocate IV

Common Data Service Audit data

Does anyone have a way to get the audit data on CDS entities into a PowerBI report or even an Excel file? I know there are ideas already posted for something, but was looking for a workaround while we wait for it to be delivered OOTB. Is PowerShell an option? 

Super User
Super User

Hi @barlowse 


Have you looked at the Audit History Extractor plugin for XRMToolbox?


More info on the plugin here



If this post has answered your question please consider it for "Accept as Solution" or if it has been helpful give it a "Thumbs Up".

Super User
Super User

Hi @barlowse,

Yes PowerShell is an option, you can get all the audit history data via the CDS's Rest API. You can consume that API with PowerShell or any method of your choice. Here's the base:


For more info:

Hope this helps!

Note that there are 2 levels of audit data.

  1. The audit entity (as per the previous post). This will give you the operation, user and date, but won't give the details of the attributes that changed
  2. The attribute change history. This will give the attribute values. To get this, you need to call the RetrieveAttributeChangeHistory function, and you need to call this for each audit record. You could probably do this via PowerShell, but you'd need to write the logic to parse the results for the audit data, and loop through each in turn

Thanks correct @DavidJennaway and can still consume with Rest API. Here's an exmaple entity Opportunity:



Thanks everyone. I will check it out.

Helpful resources

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (2,306)