Synchronize D365 Database for single table through x++ code
Synchronize D365 Database for single table through x++ code.
Synchronizing the complete D365 Database took a minimum of 30 minutes, and it is not useful to the synchronize full database on small changes on 1-2 tables.
although it is not recommended by Microsoft, to save development time we can sync the new table or table changes through x++ code by writing the below code and running it.
public static void main(Args _args)
{
appl.dbSynchronize(tableNum(NewTableName));
}
if you wish to run full sync through code then do not pass the table name in the parameter.