Check for solution component dependencies

When you edit solutions you may find that you can’t delete a solution component because it has a published dependency with another solution component. Or, you may not be able to uninstall a managed solution because one of the components in the managed solution has been used in a customization in another unmanaged solution.

The following table lists the messages that you can use to retrieve data about solution component dependencies.

Message Description
RetrieveDependentComponentsRequest
RetrieveDependentComponents function
Returns a list of dependencies for solution components that directly depend on a solution component.

For example, when you use this message for a global option set solution component, dependency records for solution components representing any option set attributes that reference the global option set solution component are returned.

When you use this message for the solution component record for the account entity, dependency records for all of the solution components representing attributes, views, and forms used for that entity are returned.
RetrieveRequiredComponentsRequest
RetrieveRequiredComponents function
Returns a list of the dependencies for solution components that another solution component directly depends on. This message provides the reverse of the RetrieveDependentComponentsRequest message.
RetrieveDependenciesForDeleteRequest
RetrieveDependenciesForDelete function
Returns a list of all the dependencies for solution components that could prevent deleting a solution component.
RetrieveDependenciesForUninstallRequest
RetrieveDependenciesForUninstall function
Returns a list of all the dependencies for solution components that could prevent uninstalling a managed solution.