...
- 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 "test profile" under the name section.
- Click on save changes button to create a new replication profile.
![](/docs/download/attachments/31985052/Data%20profile.PNG?version=1&modificationDate=1582129555000&api=v2)
- Click to "Salesforce 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.
- Next, enter the "username" and "password" credentials for Salesforce.
![](/docs/download/attachments/31985052/Salesforce%20%28OAUTH%29.PNG?version=1&modificationDate=1582129555000&api=v2)
- Once completed, click on the next button to proceed to the database setup tab.
- Click to "database" setup tab on the left-hand corner in the profiles section of the DBSync replication portal.
- Select, the required "type name" from the drop-down menu options like "MySql, SQL Server, Oracle, DB, PostgreSQL, Cassandra, Redshift, Sybase, Snowflakes, AWS S3 and MongoDB" under the "database setup" section.
- To start with database credentials user has to enter all the configuration details like host, port, username, password, database name, and schema.
![](/docs/download/attachments/31985052/Image-11.png?version=1&modificationDate=1582129555000&api=v2)
- Once, this is done click on the save button and test the connection.
- Click on the next button to redirect to the object page, their user has to select the particular Object which he/she wants to do the Data Masking.
- Once, you have selected the Object- Account then click on the Run button to select any command like Cleancopy and wait for the sync.
- Once, the Sync is complete then the user has to go back to Export Tab, select the Object from the Schema and click on the button run button and select the column in which you want to change.
- After the selection of the column click on the Add Data Mask button.
![](/docs/download/attachments/31985052/data%20mask.PNG?version=1&modificationDate=1582129555000&api=v2)
- As you can see on the above image Account object is showing on the top left corner and other options like Mask Enabled (Toggle buttons), Column, and Mask Type.
- Enabled mask for any field like Phone and select the Mask Type from the list. See the below image for the reference.
![](/docs/download/attachments/31985052/Mask%20type.png?version=1&modificationDate=1582129555000&api=v2)
- Here, I have selected the Phone Column and enabled the mask. On the right side, you will see the drop-down menu to select the mask type.
- Select the Phone mask from the mask type and click on the Save changes button.
![](/docs/download/attachments/31985052/mask%20type1.PNG?version=1&modificationDate=1582129555000&api=v2)
- After the changes click on the Export Tab to move further.
- Once you have clicked on the export tab it will pop-up a Source Metadata window. Select the Object- Account and click on the Next button.
- It will redirect to theTarget Profile pop-up, their user has to select the existing profile or create a profile section in which the user has to give the target Salesforce credentials.
- Once it is connected with
with the Target Salesforce then click on next to validate the data and finish the export task. - In the final step, you have to go back to your Target Salesforce and check in the Account section all the phone numbers have mentioned in the records were masked by the Data Masking functionality. Check the below image for your reference.
{"serverDuration": 73, "requestCorrelationId": "3a5ac2e62aae27a0"}