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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Database log SYSDATABASELOG to query for data change using SQL query

(4) ShareShare
ReportReport
Posted on by 15
I am trying to SQL query for data changes of a table that has added to database log.
Compared to AX, SYSDATABASELOG is now changed that does not have separate fields storing old & new value.
 
the field [NEWDATA] seems to be storing a whole string of data, there is not more fields like [ORIGINALDATA]
 
How do I write the query for a certain field of a table that has changed & the old new value?
 
Example VENDBANKACCOUNT table.
Categories:
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,967 Most Valuable Professional on at
    Using SQL sounds like a bad idea in this case.
     
    If you insist on want to reimplement the logic, look into SysDatabaseLog.getDataAslistNew(). There you'll find that most of the work is done by .NET classes from Microsoft.Dynamics.Ax.Xpp.SysDatabaseLog namespace; you can either reuse the assembly in your code or decompile it to be able to reimplement it.
     
    A better approach, in my opinion, is utilizing the existing application layer. Trying to bypass exiting logic means that you need to spend a lot of time reinventing the wheel and you'll take dependency on implementation details that can change in future.
     
    Moved from Integration, Dataverse, and general topics forum.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 456 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans