Hi, Readers.
Today I would like to share another mini tip about Business Central, how to import Change Log Setup (Table/Field) using Configuration Packages. I was recently asked about this topic, so I would like to share a quick overview here.
The change log in Business Central lets you track all direct modifications a user makes to data in the database.

You specify each table and field that you want the system to log, and then you activate the change log. The change log is based on changes that are made to data in the tables that you track.



On the Change Log Entries page, entries are chronologically ordered and show all changes that are made to the values in fields on the tables you specify.

However, configuring this setup individually for each table and field is extremely time-consuming. Naturally, the key question is whether we can streamline this process by importing the setup destails via Configuration Packages. However, when inspecting the page details using Page Inspection, we can see that the source table for Change Log Setup (Table) List (593, List) is AllObjWithCaption (2000000058), and for Change Log Setup (Field) List (594, List), it is Field (2000000041), both of which are system tables.


P.S. The source table for Change Log Setup (592, Card) is Change Log Setup (402), which can indeed be imported via Configuration Packages.

In fact, the solution is quite straightforward: we only need to use the following three tables to complete the Change Log setup.
| Table ID | Table Name |
| 402 | Change Log Setup |
| 403 | Change Log Setup (Table) |
| 404 | Change Log Setup (Field) |

Since I have just added a few sample settings, let’s export the data first to see how it looks (I included all fields in this export so we can review the complete data structure).
Change Log Setup (402):

Change Log Setup (Table) (403):

Change Log Setup (Field) (404):

As a result, we can simply leverage this template. For example,




Done.


Very simple. Give it a try!!!😁
PS: Dynamics 365 Business Central: How to Export and Import Data (Using Configuration Packages)
END
Hope this will help.
Thanks for reading.
ZHU




コメント