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)

Does DB logging works when records are manipulated via code?

(0) ShareShare
ReportReport
Posted on by 2

Hi,

We have created an upload journal function using csv. The DB logging is turned on for that table and when records are inserted manually the DB log store those changes. But when we use the custom upload functionality there is no record of it the log table. So anyone has idea if the logs are stored when records are inserted via code?

Thanks.

*This post is locked for comments

I have the same question (0)
  • dynamics developer Profile Picture
    2 on at

    No issue, I will later turn on DB logging for a table in my test environment and check this.

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Haris Adil,

    What table do you refer to and does your import job import the data through the AX client user interface or do you import the data directly into the table?

    Best regards,

    Ludwig

  • dynamics developer Profile Picture
    2 on at

    Hi Ludwig,

    It's General Journal. The import functionality is provided to the users through the client interface so they can select a file to upload. The actual upload is of course through ax code.

  • Verified answer
    Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at

    Yes, database logging works for changes from code as well, although it can be suppressed when needed (data imports are an example of when skipping the log may be useful).

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