How to Create a Snapshot Difference

Updated 1 week ago by Copado Solutions

Creating a Snapshot Difference

To create a snapshot difference follow the steps below:

  1. Navigate to the Snapshot Differences tab and click on New.
  2. The below screenshot will appear. Fill in the data as required and click on Save.

  3. Once you have clicked on Save and then on Calculate Differences, Copado will perform a full metadata retrieve/checkout of your source and destination org/commit (*1). Once completed, the differences will appear in the grid (example shown below).

When choosing a Salesforce org, all metadata types will be retrieved. Bear in mind that since this is a file-based functionality, nested components such as CustomField, ValidationRule, etc, are already contained within the CustomObject type. When choosing Git commit, whatever files are committed to the repository will be used for the comparison.

YAML and JSON Differences

If the Snapshot Difference record name contains @yaml or @jsonwhile calculating the differences, all the XML files will be converted to YAML or JSON format. This option reduces in about 50% the calculation time and the attachment file size when compared to the standard XML comparison option.

Example YAML Differences

Example JSON Differences

Creating a Partial Snapshot Difference

When choosing Salesforce org as source, a Partial Selection checkbox will be available. Choosing individual files will allow you to quickly compare only the selected files.

  1. Make sure that you select Salesforce org as source and destination and select the option Partial Selection.

  1. Select some files from the grid and click on Save.

  1. Click on Calculate Differences. Differences, if any, will be displayed in the same way as a regular snapshot difference.

How did we do?