# Fields to Restore Editor

The “Fields to Restore” editor determines which fields for each record will be restored to Salesforce.

* By default all fields are selected.
* If a field is not selected it will:
  * Be set to null for records inserted into Salesforce.
  * Be left unchanged for updated records.
* Fields required for creating a new Salesforce record are marked as (required).
  * If any required fields are not checked then only update restore operations are permitted.

The editor contains filtering tools above a list of all available table fields. In the following screenshot the filter has been used to only show fields whose name contains the text “Billing”:

![](https://2924009365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5FyPmqVkPxhj2oT8fbgB%2Fuploads%2Fgit-blob-bf74ed5452787d094e3a7ddc7b3078e3f643e69e%2F4fd93579-FieldsToRestore_P1.jpg?alt=media)

Other “Fields to Restore” options:

| Parameter | Description                                                                                                                               |
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| Selected  | If checked, only selected fields will be displayed.                                                                                       |
| Invert    | When pressed, the field selection will be inverted. All selected fields will be deselected, and all non-selected fields will be selected. |
| Clear     | When pressed, all selected fields will be deselected.                                                                                     |

## Advanced Field Options

The “Field Obfuscation & Masking” button launches a dialog used to control how individual fields are restored.

The “Transformer” column indicates that a data transformation should be applied BEFORE data is written to Salesforce. In the example screenshot two columns have been assigned to transformers. Available transformers include:

* Asterisk
  * Converts a column to all \*\*\*\* before writing the field to Salesforce.
  * For example, “Rebecca” will become “\*\*\*\*\*\*\*”.
* Email Scrambler
  * Randomizes email address fields before writing them to Salesforce.
  * For example, the email “<luck@casino.com>” may become “<AuFK@uuiLT.com>”.
* Email Append Invalid
  * Appends “.invalid” to email address fields before writing them to Salesforce.
  * For example, the email “<luck@casino.com>” will become “<luck@casino.com.invalid>”
* Lorem Ipsum
  * Change a block of text to the infamous “Lorem ipsum dolor sit amet, consectetur adipiscing…”
* Random: Account Name / City Name / Country Name / Street Name / First Name / Last Name / Job Title
  * Converts a column to a value selected randomly from a dictionary.
  * The value will be selected from a built-in dictionary containing values for the indicated type (e.g. “Random: Account Name” will use a dictionary of Account Names).
* Uniform: Account Name / City Name / Country Name / Street Name / First Name / Last Name / Job Title
  * Converts a column to a value selected non-randomly from a dictionary. The same input value will always provide the same output value.
  * The value will be selected from a built-in dictionary containing values for the indicated type (e.g. “Uniform: Account Name” will use a dictionary of Account Names).
* Scramble
  * Converts each letter or digit to a random character of the same class before writing the field to Salesforce.
  * Supports all numerical fields including phone, integer, or double.
  * For example,
    * “Rebecca” may become “Kiojjkl”
    * “567-45-0987” may become “778-33-0997”
    * “+44 45 345 8876” may become “+62 33 123 9567”
* Same Year Date/Time
  * Converts a date or date/time field to a random date or date/time within the same year.

If the built-in Transformers do not perform the action you need, CopyStorm/Restore supports adding new Transformers. Contact <support@capstorm.com> if you want to learn how this is done.

Other columns on this dialog provide read-only information about each column in the corresponding table.

![](https://2924009365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5FyPmqVkPxhj2oT8fbgB%2Fuploads%2Fgit-blob-406d4ecad43dd2ab764e1eb8dbfaaba9447b63b6%2F6bdb59b1-FieldsToRestorePicture2.png?alt=media)


---

# Agent Instructions: 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:

```
GET https://learn.capstorm.com/copystorm-restore/reference/restore-set-editor-tab/fields-to-restore-editor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
