Skip to main content

Hi everybody,

 

I would like to use the Dependency API to find out which metadata components all have a dependency on a specific public group. Unfortunately, when I execute the corresponding SOQL queries using Tooling API, I always get the information that no records were found. However, I know that dependencies exist and, for example, an email alert has referenced the public group as a recipient.

Am I doing something wrong, or is the Dependency API currently not supporting the retrieval of dependencies on public groups?

 

Example SOQL query that I use:

SELECT MetadataComponentName, MetadataComponentType FROM MetadataComponentDependency WHERE RefMetadataComponentId = '3D00G2p000009G67R'
답변 6개
  1. 2024년 10월 4일 오전 10:17
    @Till Affolter

    as of now the dependency api does not cover the public groups. You will need to find another way to gather that dependency. As other suggested you might look into different areas in the codebase that you can download from the metadata api using VSCode for example.

    I do understand that this dependency api should also reference more than you see today. But as I see the situation today it is beta. So including some limitation like this one.

    I have created an Salesforce application called Org Check (but you have others like

    HappySoup.io

    ) that could be used to find the answer of your problem.

    Take care.

    See

    @Org Check by Salesforce Labs
0/9000