# Expert Mode Editor

Though a Partial or Complete restore of a meta data element usually works, sometimes it is necessary to edit the raw XML that will be deployed to Salesforce. The Export Mode restore type provides this feature plus a few others.

* The raw data for the current partial restore, any backup in Capstorm, or the current Salesforce definition can be loaded and edited.
* Differences between what will be deployed can be quickly compared with the current partial restore, any backup in Capstorm, or the current Salesforce definition.
* Finding all occurrences of a pattern can be quickly performed.

Note that in Export mode, the raw data to deploy for an object is stored in the copyStormRestore file as part of the restore session configuration.

## Getting Started

To restore a meta data object using the Export mode, simply choose *Expert* from the restore type pull-down menu.

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

## Choosing Starting and Comparison Metadata

The metadata to load into the left or right panels is selected using two different pulldown menus.

* The “Base Version” pulldown loads metadata into the editor on the left.
* The “Compare With Version” pulldown loads metadata into the comparison viewer on the right.

You will see several types of options in the pulldown menu.

| Option              | Description                                                                               |
| ------------------- | ----------------------------------------------------------------------------------------- |
| Current Backup      | Load the most recent back found in the CopyStorm database.                                |
| Current Partial     | Load the metadata corresponding to the current partial selection for the metadata object. |
| Current Salesforce  | Load the current definition from the target Salesforce instance.                          |
| Custom              | Load metadata that the user has edited in this or a past session of CopyStorm/Restore.    |
| 2020-01-10 14:34:50 | Load the backup from the CopyStorm database which was created on the specified date.      |

## Metadata Difference Visualization

The following screen shots illustrate how differences are displayed when the metadata on the left and right differ. For the example an ApexTrigger metadata objects was selected.

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

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

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

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

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

## Searching Metadata

There two techniques for searching metadata.

* Differences will be calculated automatically and can be systematically walked thru using arrow control on the right.
* Specific text can be found by entering a regular expression in the *Find* parameter. These, too, can be systematically walked thru using arrow controls on the right.

![](https://2924009365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5FyPmqVkPxhj2oT8fbgB%2Fuploads%2Fgit-blob-58132f9f24c27835ddc8b2df6d3d15695884245a%2F02fa30de-ExpertModePicture7.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/meta-data-tab/expert-mode-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.
