Announcements
I want to know which class or method used to insert the Database log and when the fire to complete the operation.
exactly want to why and how ax save updated fields only in container in x++ and convert that container to nvarbinary in SQL server
to simulate the module in the MVC project
hi all,
I would like to thank you all for your interaction in solving my problem,
I understood it completely and all your answer is 100% correct.
hot regardes
Hi Abdelrhman Hiba,
As mentioned above, please check the setData() method in the table sysDatabaselog.
Dynamics Ax 2012 provide the functionality to log insert update and delete functionality on table as well as selected filed of a table. When tracking on any table in dynamics Ax, a new entry will be created in sysDatabaselog table.
Please see:
docs.microsoft.com/.../configure-and-manage-database-logging
Hope this helps.
Hi,
The data field is being assigned in this call -
sysDataBaseLog.LogMap::setData(recordInserted);
You don't see sysDataBaseLog.setData() inside logInsert()? It's there in D365FO and I assume it's the same in AX 2012 as well. The Data field is set inside setData() method.
Update: according to the other reply, the implementation in AX 2012 is slightly different.
By the way, you could have simply look at cross-references for this field.
hi,
You can find the piece of code in the logInsert menthod of application class.
sysDataBaseLog.LogMap::setData(recordUpdated, recordOrig, changedFields);
This is the place where data field value is set.
Uday
hi Nikolaos,
thanks for your replay, and I am found the class and the methods,
But I still can't find the part that I wanted to confirm which was it in SysDataBaseLog have a filed called 'Data' it's not found in LogInsert method to assign data, Either place, you think it might assign data to that field?
thanks
As mentioned, "Application is the class" where you can find those methods.
So check the class called Application.
Hello,
Thanks for the replay, but I don't understand what you mean:
1. LogInsert
2.LogUpdate
3. Record deleted
Are the classes or methods?
hi,
Application is the class where you can find,
1. LogInsert
2.LogUpdate
3.Logdelete
Uday
André Arnaud de Cal...
293,302
Super User 2025 Season 1
Martin Dráb
232,108
Most Valuable Professional
nmaenpaa
101,156
Moderator