Skip Table Triggers in Configuration Package

Skip Table Triggers in Configuration Package
Skip Table Triggers in Configuration Package

When you apply a configuration package, Business Central normally runs the table triggers, the same way it does when a user types data on a page. The Skip Table Triggers option, however, lets you apply the data without running those triggers. In this Article, we will apply the same type of customer data twice, once with the option off and once with the option on and compare the results.

Skip Table Triggers option in Business Central configuration package, step 1

How to Process Skip Table Triggers

  • First, create a package with the code SKIP TRIGGERS and add table 18 – “Customer”. Then, on the Fields page, I included only the No. and Name fields.
Business Central configuration package, step 2
  • Next, export and then create the Excel file for the package and enter one customer. For the first test the customer is CFGC001.
Skip Table Triggers option in Business Central configuration package, step 3
  • Then click Import from Excel, select the file and click Import in the preview window.
Business Central configuration package, step 4
  • Business Central then imports the package and shows the table line.
Skip Table Triggers option in Business Central configuration package, step 5

Boolean is Disabled

  • The option is a column in the package table grid. Next, scroll to the right until you see Skip Table Triggers. For the first test, it stays unchecked.
Business Central configuration package, step 6
  • Then click Apply Package and confirm with Yes.
Skip Table Triggers option in Business Central configuration package, step 7
  • As a result, Business Central shows 1 record inserted and 0 errors.
Business Central configuration package, step 8
  • Then open customer CFGC001 (option off). The Last Date Modified field shows the current date, because the table triggers ran.
Skip Table Triggers option in Business Central configuration package, step 9

Boolean is Enabled

  • Next, import a second file with customer CFGC002 in the same package.
Business Central configuration package, step 10
  • Then tick Skip Table Triggers on the Customer line.
Skip Table Triggers option in Business Central configuration package, step 11
  • Import the file again, then click Apply Package. As before, the result shows 1 record inserted and 0 errors.
Business Central configuration package, step 12
  • Finally, open customer CFGC002 (option on). The customer exists with the same No. and Name, but Last Date Modified is empty, because the table triggers did not run.
Skip Table Triggers option in Business Central configuration package, step 13

Points to Consider for Skip Table Triggers

  • Option Off: The table triggers run and Business Central fills fields like Last Date Modified automatically.
  • Option On: The data is written directly and the table triggers are not executed.
  • Use it carefully. Skipping triggers also skips the table’s built-in logic and checks, so use it only when you are sure the data is already correct, such as in a bulk data migration.

Hope so this is Helpful 😃

By Ahmad Subhani

Microsoft Dynamics 365 and Business Central consultant sharing practical insights, new features, product reviews, and real-world solutions for modern businesses.

Leave a Reply

Your email address will not be published. Required fields are marked *