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 AX (Archived)

Database logs on batch

(0) ShareShare
ReportReport
Posted on by

Hello all

Would be grateful if someone could help. Given:

0. I'm just an angry user, no admin rights, no sql access. The only thing I have to solve the problem is Basic Module and faith in bright future.

1. AX2009. For several tables (e.g. VendTable and  CustTable) database logs were activated (set up?) by our AX specialists. Everything is ok, logs work perfectly - updates, inserts and annihilations can be seen either through Administration module database log report (hereafter as log report) or via right click in target table -> "Database logs".

2.  According to our internal rules we have to generate the log reports quite often. So, someone need to sit and manually generate&save around 30 log reports. It is boring and time consuming. 

_____________________________________________________________________________________________________________________

So, my idea was to dig into the log report as much as I can, find a table or tables which contain this database logs data, then though the Basic module put .csv export of these tables on a batch with a given frequency and, finally, write a script in R or VBA which then process all the data. 

_____________________________________________________________________________________________________________________

PROBLEM:

For me it looks like the table which the log report relies on is SysDataBaseLog table. However, I do not see any variables like "Current value" or "Previous value". When I just generate the log report manually the interface asks me to provide a table number and dates. So, when one puts 505 (VendTable) he/she will get a nice report where sees what was in a field and for what it was changed. When I export SysDataBaseLog via basic module I see a variable for table name and also a variable for vendor identification. Consequently, what I see is which vendors were changed and how many times. That's it. I do not see which fields/values were changed and how.

The table includes also 2 variables like LogRecId and RecID. I came to the conclusion that LogRecId corresponds with RecId in VendTable, consequently, it reflects current value. But I still do not know from which table (if any) previous value of a given field is taken. And that is the main problem and the main question.

I will be extremely happy if someone could help. Thx in advance!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,948 Most Valuable Professional on at

    Information about values is stored in a container field called Data. You shouldn't try to interpret the container by yourself, rather call SysDataBaseLog.getDataAsList() method to do it for you. It means that you'll need a developer to prepare the data export for you, but it shouldn't take long time.

  • Community Member Profile Picture
    on at

    Thx Martin.

    Developer is like a Santa, never seen one, but heard about. Well, I guess I just have to live with current setup. At least right now I have a bit better understanding of the system :)

    Best,

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 AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans