> For the complete documentation index, see [llms.txt](https://knowledgebase.autorabit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.autorabit.com/product-guides/vault/vault-features/masking-rules/find_replace-masking_rules.md).

# Find\_Replace - Masking\_Rules

The Masking Rules module centralizes the creation and management of masking rules for a selected Salesforce org. A masking rule defines the object, field type, masking style, selected fields, and replacement behavior used to protect sensitive values.

This guide explains how a Find & Replace masking rule is created from the standalone Masking Rules module.

## Open the Masking Rules Module

The Masking Rules page displays the selected Salesforce org and the available rule management options. The grid lists existing masking rules with columns such as Rule Name, Type Of The Rule, Object, Field Type, Masking Style, Selected Fields, Created Date, Modified Date, and Actions. When no rules are available, the page displays No Masking Rules.

The Salesforce org is selected from Salesforce Orgs. The required rule can then be created by selecting NEW MASKING RULE.

<figure><img src="/files/laOAo564k5GT7k1NVZ5x" alt=""><figcaption></figcaption></figure>

## Start a New Masking Rule

Selecting NEW MASKING RULE opens the Masking Rule dialog. The dialog displays the selected Salesforce Org and provides the required fields for rule creation.

Rule Name is mandatory. The field supports alphanumerics, hyphen, underscore, and spaces. If the rule name does not follow the allowed format, a validation message is shown and the rule cannot be saved until the value is corrected.

SAVE remains inactive until the mandatory configuration is completed. CANCEL closes the dialog without saving the rule.

<figure><img src="/files/cpuwcIsyrJ4RxK4xxH6O" alt=""><figcaption></figcaption></figure>

## Define the Rule Scope

The rule scope is defined by selecting the Salesforce object and the field type. Select Object displays the available objects for the selected Salesforce org. Field Type narrows the field list to the required type of field.

![](/files/46abad5640fccba06ec882a23dc4973673287953)

![](/files/52498005c10e124c8df2a67a74d73e4094848e24)

## Select Find & Replace as the Masking Style

Masking Style is set to Find & Replace. This masking style searches selected fields for a configured value or pattern and replaces the matching values based on the selected replacement option.

![](/files/36bc95c49277fa0fa681def8d44fab74d273acf6)

## Configure the Find and Replacement Values

The Find field accepts either a regular expression or a specific value. This value is used to search across the selected fields and identify the values that must be masked.

After the Find value is entered, Replace With determines how the matched values are replaced. The replacement option can be set to Specific Value or Synthetic Data.

* Specific Value replaces each matched value with the replacement value entered in the rule.
* Synthetic Data replaces each matched value with generated synthetic data based on the configured replacement behavior.

![](/files/47dc08b86db4410cd6e20f68b30a43247a32d255)

![](/files/21872640b6ee39ea595216646b004d236ebc0d5c)

![](/files/258f6565d70129e96bf7085d6608584d61ad9c56)

![](/files/623b86b68e0d793afc17516f76db92ecdb2ace3f)

![](/files/cbd53633f0dfbc7562aadf2bfa1339b6d9d304b0)

## Select Fields and Review Sample Values

After the rule criteria are configured, the matching fields are displayed in the table. The Search field can be used to narrow the list. The field list can be scrolled to review and select the required number of fields.

Selected fields display the masking strategy and sample value columns. The sample value indicates how the matched data will be replaced when the rule is applied.

![](/files/57c16b425a1487e532065e3805a5668c3b17f3e1)

![](/files/2651ed1e0da44dbb4fd588741859478440695e37)

![](/files/a69985de59329429786db64d4846c08595e1f495)

![](/files/884db2bfbdb5b395277c8fd4532e711a28fb093f)

![](/files/ad0021f724c2e1f49b80e5567f0b71d86ea7c97f)

## Save the Rule

After the Find value, Replace With option, replacement details, and selected fields are complete, SAVE becomes available. Selecting SAVE creates the Find & Replace masking rule for the selected Salesforce org.

The rule is then available from the Masking Rules page and can be reviewed or managed from the rule grid.

![](/files/d1750dfe1a8846a6939e812ff59495afd58727e2)

## Configuration Summary

| **Configuration area** | **Purpose**                                                                             |
| ---------------------- | --------------------------------------------------------------------------------------- |
| **Salesforce Orgs**    | Identifies the Salesforce org where the masking rule is created.                        |
| **Rule Name**          | Defines the masking rule name and must follow the allowed character format.             |
| **Select Object**      | Determines the Salesforce object whose fields are available for masking.                |
| **Field Type**         | Filters the available fields by the selected field type.                                |
| **Masking Style**      | Uses Find & Replace to locate and replace values that match the configured Find value.  |
| **Find**               | Accepts either a regular expression or a specific value to identify values for masking. |
| **Replace With**       | Supports Specific Value or Synthetic Data as the replacement method.                    |
| **SAVE**               | Creates the masking rule after the mandatory configuration is complete.                 |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://knowledgebase.autorabit.com/product-guides/vault/vault-features/masking-rules/find_replace-masking_rules.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
