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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Query an Audit Table v...
Power Apps
Answered

Query an Audit Table via the Dataverse Endpoint SQL Connection

(0) ShareShare
ReportReport
Posted on by 7

I have a table with auditing enabled. I have edited records and can see changes in the App (by clicking Related > Audit History on a given record)

 

I can also see the latest version of table using the Dataverse Endpoint SQL Connection (in Power BI and SSMS) but I can't see the audit history of that table

 

Is it possible to query the audit history of a table? and if so how?

I have the same question (0)
  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @edondata ,

     

    I was going to work on a reply but this explains very well so thought I would share:  https://dynamics-chronicles.com/article/dynamics-365-audit-explanation-deep-dive 

     

    Please accept if answered your question or Like if helped in any way.

     

    Thanks much!

     

    Drew

  • edondata Profile Picture
    7 on at

    Thanks @dpoggemann. It seems from the article that the audit history from many tables is collected in 1 table called dbo.AuditBase. So that should work fine. The problem is I can't see dbo.AuditBase though via SSMS or Power BI. Any idea what I need to change?

  • Verified answer
    Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @edondata,

     

    Looked as well and not visible in tables to choose from for Online, only on-premises environments...

     

    Please see the following for a work-around:

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/272166/get-data-from-audit-history

     

    Hopefully this works for you.  If so, please accept solution and if helps somewhat, please Like.


    Thanks,

    Drew

  • edondata Profile Picture
    7 on at

    Thanks @dpoggemann 

     

    I've added this as an idea so please vote if you encounter the same problem

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Query-the-audit-history-of-a-table-via-the-Dataverse-Endpoint/idi-p/900190

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard