This feature performs a comparison between two Salesforce Orgs and returns the Metadata differences between the two. The differences can be filtered by date range, User and Type of difference (creations, updates and deletions). These Org 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).
How are the differences calculated?
The org difference is calculated based on the last modified dates of the components in the source and destination orgs. To find metadata differences in content, use the Snapshot Differences feature instead.
When calculating the Org Differences, a list of metadata is retrieved for the two orgs, and if the last modified date of a component is greater in the source environment, the component will be flagged as an update. Note that this will only be shown as an update if the last modified date is greater in the source environment. If the last modified date is greater in the destination environment, no 'updated' flag will be shown.
If a component experienced changes but these were reverted back, then this component will appear as an update difference even if the content of the component is the same in both Orgs. The last modified date can also be different if the component was deployed to the source org without any content/configuration changes.
Creating an Org Difference
Click on the “Org Differences” tab and press the “New” button.
The below screenshot will appear. Fill in the data as required and press, “Save”.
Once the “Save” button is pressed Copado will perform a full Metadata describe of your Source and Destination Org. Whilst this is loading it is important that you do not leave the page. Once completed the Org Differences will appear in the grid (example shown below).
Deploying Org Differences
Use the checkboxes, “Include create”, “Include update” and “Include delete” to select which deployment actions should be added when you create your deployment.
Pressing the “Create Deployment” button will add the selected inclusions into a Deployment and redirect you to the page. You will have the ability to review your list of deployment items in Step 2 of the Deployment Wizard.