AX / D365FO – Perform database synchronization for a single table in X++

Through X++ code we can perform database synchronization either on a required table (or) on all tables bases on our requirement.

This could be very useful during on-premises environments package deployments because can can drastically reduce the downtime.

In fact you can only synchronize the tables that you have actually modified rather than perform an entire synchronization

To perform a single table db sync simply create a runnable class and use appl.dbSynchronize(tableNum(‘your table’));

public static void main(Args _args)
{
  // On specific table, for all tables just call the method dbSynchronize() without any parameters
   appl.dbSynchronize(tableNum(CustTable));
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s