Options to perform database synchronization in D365FO
Hi,
In this post we will explore the options/ways to perform database synchronization in D365FO.
Option 1: We can synchronize the database on selecting the option by navigating to the path Dynamics 365 > Synchronize database in Visual Studio.
Option 2: We can perform database synchronization on building project by setting the value of option "Synchronize Database on Build" to True on project properties window in Visual Studio.
Option 3: We can perform database synchronization by enabling option "Synchronize database on build for newly created project" on the options window navigating to the path Dynamics 365 > Options window > Dynamics 365 > Projects in Visual Studio.
Option 4: Through X++ code we can perform database synchronization either on a required table (or) on all tables bases on our requirement.
Note: CG_DBSynchronize is a runnable class.
class CG_DBSynchronize{ /// <summary> /// Runs the class with the specified arguments. /// </summary> /// <param name = "_args">The specified arguments.</param> public static void main(Args _args) { CustTable custTable;// On specific table, for all tables just call the method dbSynchronize() without any parameters appl.dbSynchronize(tableNum(CustTable)); }}Regards,
Chaitanya Golla

Like
Report
*This post is locked for comments