Notifications
Announcements
No record found.
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,
Application is the class where you can find,
1. LogInsert
2.LogUpdate
3.Logdelete
Uday
Hello,
Thanks for the replay, but I don't understand what you mean:
3. Record deleted
Are the classes or methods?
As mentioned, "Application is the class" where you can find those methods.
So check the class called Application.
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
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.
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,
The data field is being assigned in this call -
sysDataBaseLog.LogMap::setData(recordInserted);
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 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
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 456 Super User 2025 Season 2
Martin Dráb 429 Most Valuable Professional
BillurSamdancioglu 239 Most Valuable Professional