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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

How to get Audit history data using sql

(0) ShareShare
ReportReport
Posted on by 645

I need to create a report using SQL of audit history for a specific entity and a specific field in the entity (old value vs new value) is it possible? I'm using on-premisse 2016

I have the same question (0)
  • Verified answer
    Marco.P Profile Picture
    2,405 on at

    Hi,

    yes, it's possible.

    Here's a link to help you write down a query to extract data:

    https://community.dynamics.com/crm/b/mscrmcustomization/posts/ms-crm-audit-database-table-details

    Also you can use some XrmToolbox plugin such as :

    https://www.xrmtoolbox.com/plugins/AuditHistoryExtractor/

    https://www.xrmtoolbox.com/plugins/MESquare.XrmToolBox.AuditExplorer/

    https://www.xrmtoolbox.com/plugins/BDK.XrmToolBox.UserAuditViewer/

    Hope it helps,

    Marco

  • Suggested answer
    Johao Larios Profile Picture
    1,795 on at

    Hello, 

    I recommend you use the SDK as described here: https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/retrieve-and-delete-the-history-of-audited-data-changes 

    If you want more info about the audit table, you could check here: 

    https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/entities/audit

    My recommendation is use the SDK.


    Regards

  • Verified answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    Take a look:

    marcuscrast.wordpress.com/.../

    community.dynamics.com/.../using-audit-history-in-ssrs-reports

    Basically you will use ChangeData columns of AuditHistory table.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 163 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 158

#3
Zhilan Profile Picture

Zhilan 49

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans