Gearset fully supports comparing and deploying changes to managed package metadata in your Salesforce and version control environments.
Including managed package metadata in your comparisons
Default comparison metadata filter for comparisons does not include managed package metadata. To get managed packages appear in the results, you'll need to use a different metadata filter.
There are two ways to do this: selecting the
Compare all preset filter, or creating your own custom filter.
Option 1: Using the Compare all filter
Compare all filter will include all namespaces and all metadata types (which includes the
Installed package type).
To use this filter, simply select
Compare all from the comparison filter drop-down, and start your comparison.
Tip: If you have large orgs or many installed packages, using the
Compare all filter can make the comparison process slower, as Gearset needs to retrieve a larger volume of metadata. For a faster comparison, follow option 2 below.
Option 2: Create your own custom metadata filter
Creating a custom filter allows you to specify which namespaces you want to retrieve. It also lets you customise the metadata types to include in your comparison. Excluding the metadata types you aren't interested in deploying will speed up comparison times and reduce the noise in your comparison results.
From the Compare and deploy page, open the
Metadata comparison filter drop-down and select
Manage custom filters.... Choose the metadata types you want to include in your filter from the list on the left-hand side. Un-checking the box next to each type will remove that type from your filter.
Include managed packages section on the right-hand side, select
Choose. You can then add in the namespaces for any packages you want to compare.
Tip: If you have already selected the source and target orgs on the Compare and deploy page before you open the custom filters dialogue, Gearset will suggest the namespaces of any packages installed in your orgs. You can quickly add them to your filter by clicking the + sign next to them.
If you want to include all packages in your org, you can alternatively set this option to
For more about custom metadata filters, see our support article.
Prerequisites for managed package metadata to appear in your comparison results
In order to see the managed package's associated metadata in the comparison results view, there are 2 options:
Option 1. If you have the
Installed package type selected, you will need to make sure that your managed package is:
- Installed in both orgs.
- The same version in both orgs.
Note: The installed package file itself will show even if the above conditions are not met.
Option 2. If you do not have the
Installed package type selected, but have
Include managed package set to
Viewing managed package components in comparison results
Now that you've included the packages you want to compare in the metadata filter, click
COMPARE NOW. In the comparison results, you will now see any associated changes for those packages.
These can be selected and deployed just like any other metadata component type. You can search for them by entering the namespace prefix into the filter box in the top right of the table.
The package file itself will also appear as an item in the comparison results. Selecting and deploying the package files will trigger the package to be installed in the target environment, or updated to the later version if there is a version difference.
If you can't find a customization you've made to a piece of metadata in a managed package, then you should filter the results for
Installed Package, and check if the package is installed in both orgs and at the same version.