Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

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.

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 225,588 Super User 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.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,986 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans