web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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
    240,059 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans