This feature performs a comparison between a Salesforce Org or Git commit against another Salesforce Org or Git commit (any combination is possible) and returns the file content differences between the two. The differences can be filtered by Type of difference (creations, updates and deletions) and File name. When the difference type is an update, a "Show Diff" link will be displayed next to the file name, clicking on it will display a side by side comparison.
These Snapshot differences can then optionally be deployed to help maintain consistency between various sandboxes and/or the production environment. The selection of Source and Destination Orgs is not limited to connected Salesforce instances (Production-Sandbox or Sandboxes for the same Organisation).
Creating an Snapshot Difference
Click on the “Snapshot Differences” tab and press the “New” button.
The below screenshot will appear. Fill in the data as required and press, “Save”.
Once the “Save” and then the "Calculate Differences" button are pressed, 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).
Note1: When choosing 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.
Creating a partial Snapshot Difference
When choosing Salesforce Org as source, a checkbox for Partial Difference will be available. Choosing individual files will allow users to quickly compare only selected files.
Step 1: make sure that you select Salesforce Org as source and destination and select the option "Partial Selection".
Step 2: press the button "Edit selections" and select some files.
Step 3: save the selection.
Step 4: press the button "Calculate Differences". Differences, if any, will be displayed in the same as a regular snapshot difference.