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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Export All Audit history from Dynamics 365

(1) ShareShare
ReportReport
Posted on by

Hi,

I have a requirement to export the audit history from Dynamics 365 to an external application. There is no out of the box way to export the audit history in CRM. The export should also be scheduled to run every X hours, and export the delta changes.

Apart from the MSCRM Toolkit Audit Export Manager (which I am not sure It works for Dynamics 365 ?), what are the other approches we this task ? We cannot access directly the SQL DB from Dynamics 365.

Thank you,

Lahcen.

*This post is locked for comments

I have the same question (0)
  • ashlega Profile Picture
    34,477 on at

    Hi,

     I don't think there are too many options.. you can also write your own code - here is an example from Microsoft:

    msdn.microsoft.com/.../gg309735.aspx

  • Antbutcher Profile Picture
    387 on at

    FYI - I tried using the "MSCRM Toolkit Audit Export Manager" today for the first time since we upgrade to 8.2 and it doesn't appear to work. There doesn't appear to an update available either.

  • Srujan K Profile Picture
    317 on at

    You can use Data Export Services and Export complete Audit History Data to SQL Azure.

  • Community Member Profile Picture
    on at

    Srujan - you mentioned using Data Export Services and Export complete Audit History to SQL Azure.  I've installed and am able to export any entity from D365 to SQL Azure, but I don't see the option to export the complete audit history.  Can you direct me to how to do this?  Thank you!

    Chris

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    I would suggest to use KingswaySoft Integration toolkit for that purpose - blog.sonomapartners.com/.../analyzing-audit-logs-using-kingswaysoft.html

  • Community Member Profile Picture
    on at

    Hi Andrew - thank you for the reply.  I attempted to do this with Scribe, but the "changedata" field couldn't be read (I'm accessing D365 Online).  I hadn't tried Kingswaysoft yet.  In your link, it shows a great example, but it is connecting to CRM On Prem.  Do you know if Kingsway is able to pull the changedata field?  Naturally with On prem it can be done because of a local database, but my challenge has been getting this information from Online.  I could always write something using the SDK but was hoping to leverage a tool if possible.

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    KingswaySoft works both onprem and online.

  • Community Member Profile Picture
    on at

    You can used Power Shell script with Azure automation account , that will run updated script  every X hours

  • Emad Hanna Profile Picture
    on at

    Did anyone figure this out?  I need to extract the audit history into tables.

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    Have you tried Audit History Extractor plugin on XrmToolBox

    ScreenClip-_5B00_432_5D00_.png

    ScreenClip-_5B00_432_5D00_.png

    it the plugin works as you expected, I don't see why you can't have a look at the code and see if you could push this into a scheduled Azure function and insert into Blob or Azure SQL or CosmosDB

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

    With the Change Tracking feature in CRM, the external system can get the as and when something changes in CRM entity records so you could build an Azure based audit table using changes tracking feature

    And with the new O365 Security and Compliance Center, audit history is synced to O365 so it might be worth having a look at that as well

    https://docs.microsoft.com/en-us/office365/securitycompliance/search-the-audit-log-in-security-and-compliance

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans