Hello,
I tried to use Tooling API MetadataComponentDependency to query Dependencies on custom fields of some objects in my org using this query:
SELECT MetadataComponentName, MetadataComponentType, RefMetadataComponentName, RefMetadataComponentType FROM MetadataComponentDependency WHERE RefMetadataComponentId = '${fieldId}'However the query results don't retrieve reports and report types
Report and ReportType dependencies are visible when I click on 'Where is this used?' button in the field's detail page but not in the query results..
Am I lacking some permissions or missing anything else?
답변 4개
Sushil Kumar (UKG) Forum Ambassador
Per this https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_metadatacomponentdependency.htm, you need to use bulk api 2.0 if you want to get reports.