web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Common Data Service Au...
Power Apps
Unanswered

Common Data Service Audit data

(0) ShareShare
ReportReport
Posted on by 207

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? 

I have the same question (0)
  • Hamish Sheild Profile Picture
    3,005 Most Valuable Professional on at

    Hi @barlowse 

     

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

     

    More info on the plugin here

    https://github.com/alduzzen1985/Audit-History-Extractor

     

     

    -----
     
    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".

  • Verified answer
    EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    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:

    https://<env>.api.crm<6>.dynamics.com/api/data/v9.1/audits

    For more info: https://docs.microsoft.com/en-us/dynamics365/customer-engagement/web-api/audit?view=dynamics-ce-odata-9

    Hope this helps!

  • David Jennaway Profile Picture
    716 on at

    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
  • EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

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

    https://<env>.api.crm<6>.dynamics.com/api/data/v9.1/RetrieveRecordChangeHistory(Target=@t)?@t={"@odata.type":"Microsoft.Dynamics.CRM.opportunity","opportunityid":"<guid>"}

     

  • barlowse Profile Picture
    207 on at

    Thanks everyone. I will check it out.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard