Skip to main content

Run test masking for a specific object

Salesforce organizations often have multiple automation processes, which can sometimes interfere with data masking operations.

DataMasker offers a solution by allowing users to test masking to identify any potential conflicts with existing automation.

This feature ensures that no execution records are created during the test, providing a safe way to verify compatibility.

After running the test masking, users can immediately view the results on the same screen, enabling quick and efficient troubleshooting.

During the test masking process, users can specify the record IDs of a particular object in a comma-separated format.

Test masking can be executed in two modes: Rollback mode and Non-Rollback mode.

Interface displaying options to run test masking with rollback mode checked

RollBack Mode

When the rollback mode checkbox is checked, records do not get masked as per the configuration, but it will show the error messages if any automation restricts the masking.

Non-Rollback mode

When the rollback mode checkbox is unchecked, the records are masked as per the configuration, and if there is an error in processing the records, an error message will appear.

Screenshot showing an error message during test masking due to missing required fields

Solution Steps

  • Step 1: Go to the Configuration tab and create the configuration. Add object and field masking.

Configuration tab

  • Step 2: Click on the button ‘Run Test Masking’

Run Test Masking button

  • Step 3: Add the record IDs, separated by commas, for which the user wants to check the masking and check the checkbox ‘Run in rollback mode’.

Input field for entering Record IDs in Salesforce test masking

  • Step 4: Click on the Run button

Button to initiate run test masking in Salesforce

  • Step 5: If any automation restricts the masking, the user will see an error message; if not, the status will be Successful.

Display of an error status in run test masking due to a validation exception

  • Step 6: Click the link ‘Click Here’ to see the record on which masking was run.

Click Here link

Now repeat the same process, uncheck the checkbox ‘Run in rollback mode,’ and remove the validation to make the masking successful.

Success notification in Salesforce test masking

  • Step 7: Now click on the ‘Click Here’ link to see the masking on the respective record. Due to running in the non rollback mode the record will be updated as per the configuration.

Masked Contact record

This is how by running test masking, users can identify and remove any restrictions that might interfere with the actual masking process before it is applied to a large dataset.

This proactive approach ensures that potential issues are resolved in advance, facilitating a smoother and more efficient data masking operation.