Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Does DB logging works when records are manipulated via code?

Posted on by 1,272

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

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,198 Most Valuable Professional on at
    RE: Does DB logging works when records are manipulated via code?

    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).

  • dynamics developer Profile Picture
    dynamics developer 1,272 on at
    RE: Does DB logging works when records are manipulated via code?

    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.

  • Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Does DB logging works when records are manipulated via code?

    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
    dynamics developer 1,272 on at
    RE: Does DB logging works when records are manipulated via code?

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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans