Database to Source Apps
Last updated
Last updated
Use DBSync Replication for different databases like MySql, SQL Server, Oracle, DB, PostgreSQL, Cassandra, AWS RedShift, Snowflake, Sybase, and MongoDB. to connect with source applications like Salesforce and Microsoft CRM.
(Note: Source Apps includes Salesforce and Microsoft CRM Application)
The quickstart walks through shows how database to source applications synchronization can be performed in the same profile wherein source applications to database replication is configured.
DBSync replication tool facilitates database to source apps replication using control Flag (do_sync_flag).
Sign in to the DBSync Replication portal.
Start the DBSync Replication console to configure the proxy settings under the global settings option on the home page.
Follow these steps to configure a proxy global settings in the DBSync replication portal.
Once, you have logged in then click to "the main menu" in the right-hand top corner on the home page of the DBSync Replication portal.
Next, enter the required proxy credentials in different text boxes like proxy host, port, username and password under the global settings section.
Click on save changes button to save global settings details.
Source application profile Includes Salesforce and Microsoft CRM. The source app profile is created within the DBSync Replication platform.
Follow these steps to create a profile under source applications like Salesforce and Microsoft CRM.
Click to "add profile" in the right-hand corner of the profiles section of the DBSync replication portal.
Select, the required source name application from the drop-down menu under the product header.
Next, enter the name of the profile like "testprofile" under the name section.
Click on save changes button to create a new replication profile.
Start with source application setup details includes Salesforce and Microsoft CRM.
The source setup application details required to configure your Salesforce and Microsoft CRM credentials like "username" and "password".
Follow these steps to configure your source application like Salesforce and Microsoft CRM.
Click to "Salesforce and Microsoft CRM" setup tab on the left-hand corner in the profiles section of the DBSync Replication portal.
Don't change the "environment and soap end details", all these details are pre-filled.
Once completed, click on the next button to proceed to the database setup tab.
Start with the database setup tab, to fill all the necessary details and follow the same procedure for testing and validating your database credentials.
Follow these steps to configure your database credentials with different databases like MySql, SQL Server, Oracle, DB, PostgreSQL, Cassandra, AWS RedShift, Snowflake, Sybase, and MongoDB.
Click to "database" setup tab on the left-hand corner in the profiles section of the DBSync replication portal.
To start with database credentials user has to enter all the configuration details like host, port, username, password, database name, and schema.
Once, all the details entered by the user then URL details will get auto-filled.
Click on the Test Connection button to validate your source application login details.
Click on the Save button to save your source apps login details.
Once completed, click on the next button to proceed to the advanced settings tab to get the email Id to get the notifications.
Note:
While replicating with Cassandra, please refer to the following wiki link for specific details on Replication with Cassandra. http://help.mydbsync.com/docs/display/CloudReplication/3+-+Big+Data+Support
While replicating with the Amazon Redshift database, please refer to the following wiki link for specific details on Replication with Amazon Redshift. http://help.mydbsync.com/docs/display/CloudReplication/Amazon+Redshift
Start with the advanced settings tab, to fill all the necessary details and follow the same procedure for testing and validating Advanced settings credentials.
Follow these steps to configure your Advanced settings credentials.
Click to "advanced" settings tab on the left-hand corner in the Profiles section of the DBSync replication portal.
Mark the checkbox to "enable database logging" to create an auto-created table in the database.
Next, Mark the checkbox of "email only on error" to get an email message when error will occur.
Enter an email for an "email recipient" to get the notification when any run command is executed.
Click on the save button to save the details of your advanced setting.
Once the process is completed then click on save and next button to proceed further.
Start with Source Application Objects tab, to get synced all the objects when the user will get connected to different source applications like Salesforce/Microsoft CRM.
Follow these steps to synced all objects for source application like Salesforce and Microsoft CRM.
Click to "objects" tab on the left-hand corner in the Profiles section of the DBSync replication portal.
Once, the user has connected to source applications like Salesforce and Microsoft CRM then objects will get synced and it will show on the objects tab.
Once completed, click on the "Run button" to Run the configuration for the Source Apps object.
Once the user has selected and "run" the command, then it will redirect to the user on the log screen tab to see the status of the command is completed or not.
Start with the Scheduler Jobs tab, where users can schedule the sync using Scheduler Tab.
Follow these steps to schedule the sync using the Scheduler tab with scheduler functionality like run commands options, Date, Month and year format settings and repeat Drop-down menu details to set the desired duration to sync the selected objects.
Click to "scheduler jobs" tab on the left-hand corner in the Profiles section of the DBSync replication portal.
Once, the user has connected to source applications like Salesforce and Microsoft CRM then objects will get synced and the user can directly select the required process from the command drop-down and configure the frequency of the sync by selecting a desired duration from the Repeat drop-down menu.
Next, "start on" option to select the date, month and year from the drop-down menu to get the objects synced for particular Date and Month format.
Create a task in the "task section" with all the details including task name, action, command, and start, date and time.
Once the process is completed then click on the Save button to proceed further.
Next, enter the "username" and "password" credentials for Salesforce and Microsoft CRM.
"OR", "Other option for salesforce" click on connect to Salesforce (OAUTH) to enter Salesforce login credentials like "username" and "password" to connect the Salesforce application.
Click on the test connection button to validate your source application login details.
Click on the Save button to save your source apps login details.
Select, the required "type name" from the drop-down menu options like "MySql, SQL Server, Oracle, DB, PostgreSQL, Cassandra, AWS RedShift, Snowflake, Sybase, and MongoDB" under the "database setup" section. (Note: The database URL can also be entered manually if you know your database Connection string.)
Select any "source apps objects" you want to sync into the database from the left objects section as shown below.
Select the object fields you want to sync into the database from the"available fields" section and use the "exclude fields" section to filter out fields you don't want to sync into the database.
Run menu to select the required commands like an update database schema, source apps to the database (Clean Copy), source apps to the database (Incremental) to execute As per the above commands options, the user has to select the database to source command to replicate all the sync objects to their source applications.
Include required control flags in the column do_sync_flag of database table where in source app data is already stored during previous runs for source app to database replication. The selection of control fags shown in the below table is illustrated with an example in the topic do_sync_flag.
Values
Description
Y
The record has been synchronized between Source Apps and Database
S
A request from an external system to indicate that the record needs to be synchronized from Database to Source Apps
D
This indicates that the record was deleted in Source Apps.