web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

Options to perform database synchronization in D365FO

Chaitanya Golla Profile Picture Chaitanya Golla 17,225

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.

Option1

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.

Option2

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.

Option3

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

Comments

*This post is locked for comments