A sample collection of seemingly random metadata and below the type relationships as currently returned by the Dependencies API (Pilot).
sfdx force:data:soql:query --usetoolingapi --query "SELECT MetadataComponentId, MetadataComponentName, MetadataComponentType, RefMetadataComponentId, RefMetadataComponentName, RefMetadataComponentType FROM MetadataComponentDependency Where RefMetadataComponentType ='CustomLabel'"
Custom Label | |
---|---|
Apex Class | Yes |
Apex Trigger | Yes |
Visualforce Page | Yes |
Lightning Component Markup | Yes |
Lightning Component Controller | Yes |
sfdx force:data:soql:query --usetoolingapi --query "SELECT MetadataComponentId, MetadataComponentName, MetadataComponentType, RefMetadataComponentId, RefMetadataComponentName, RefMetadataComponentType FROM MetadataComponentDependency Where RefMetadataComponentType = 'ApexClass'"
Apex Class | |
---|---|
Apex Class | Yes |
Apex Trigger | Yes |
Visualforce Page | Yes |
Lightning Component (controller attr) | Yes |
Flow Action | Yes |
Process Builder Action | Yes |
Report Subscription Handler | No |
Inbounder Email Handler | No |
sfdx force:data:soql:query --usetoolingapi --query "SELECT MetadataComponentId, MetadataComponentName, MetadataComponentType, RefMetadataComponentId, RefMetadataComponentName, RefMetadataComponentType FROM MetadataComponentDependency Where RefMetadataComponentType = 'AuraDefinitionBundle'"
Lightning Component | |
---|---|
Lightning Component | Yes |
Lightning Page (FlexiPage) | Yes |
Quick Action | Yes |
Flow | No |
Action Override | No |
sfdx force:data:soql:query --usetoolingapi --query "SELECT MetadataComponentId, MetadataComponentName, MetadataComponentType, RefMetadataComponentId, RefMetadataComponentName, RefMetadataComponentType FROM MetadataComponentDependency Where RefMetadataComponentType = 'StaticResource'"
Static Resource | |
---|---|
Lightning Component | Yes |
Visualforce Page | Yes |
sfdx force:data:soql:query --usetoolingapi --query "SELECT MetadataComponentId, MetadataComponentName, MetadataComponentType, RefMetadataComponentId, RefMetadataComponentName, RefMetadataComponentType FROM MetadataComponentDependency Where RefMetadataComponentType = 'Page'"
Visualforce Page | |
---|---|
ApexClass (via PageReference) | Yes |
Custom Object | Yes |
Layout | Yes |
Custom Button (WebLink) | Yes |
Lightning Page (FlexiPage) | Yes |
Custom Object Help | Yes |
Action Overrides | No |
sfdx force:data:soql:query --usetoolingapi --query "SELECT MetadataComponentId, MetadataComponentName, MetadataComponentType, RefMetadataComponentId, RefMetadataComponentName, RefMetadataComponentType FROM MetadataComponentDependency Where RefMetadataComponentName = 'On'"
Custom Setting Field | |
---|---|
Apex (via getInstance) | Yes |
Visualforce Page (via $Setup) | Yes |
Formula Field (via $Setup) | Yes |
Validation Rule (via $Setup) | Yes |
Layout | Yes |
sfdx force:data:soql:query --usetoolingapi --query "SELECT MetadataComponentId, MetadataComponentName, MetadataComponentType, RefMetadataComponentId, RefMetadataComponentName, RefMetadataComponentType FROM MetadataComponentDependency Where RefMetadataComponentType = 'Flow'"
Flow | |
---|---|
Process Builder | Yes |
Apex | Yes |
Lightning Actions | Yes |
Lightning Pages | Yes |
Flow | No |
sfdx force:data:soql:query --usetoolingapi --query "SELECT MetadataComponentId, MetadataComponentName, MetadataComponentType, RefMetadataComponentId, RefMetadataComponentName, RefMetadataComponentType FROM MetadataComponentDependency Where RefMetadataComponentType = 'CustomFIeld'"
Custom Field | |
---|---|
Validation Rule | Yes |
Layout | Yes |
Formula Field | Yes |
Visualforce Page | Yes |
Apex Class | Yes |
Apex Trigger | Yes |
Email Template (Classic, Text Based) | Yes |
Field Set | Yes |
Flow (Query) | Yes |
Lightning Component Markup (Attr) | Yes |
Process Builder (Criteria) | Yes |
URL Button (Formula) | Yes |
Lightning Page (Related List Single) | Yes |
Lookup Filter (Lookup and Master Detail) | Yes |
Lightning Page (visibility criteria) | No |
Quick Action Layout | No |
Custom Metadata Record Lookup | No |
Criteria Based Sharing Rule | No |
Workflow Field Update | No |
Workflow Approval Process | No |
Reports | No |
Profiles / Permission Sets | No |
List View | No |
sfdx force:data:soql:query --usetoolingapi --query "SELECT MetadataComponentId, MetadataComponentName, MetadataComponentType, RefMetadataComponentId, RefMetadataComponentName, RefMetadataComponentType FROM MetadataComponentDependency Where RefMetadataComponentType = 'CustomObject'"
Custom Object | |
---|---|
Visualforce Page (via controller attr, $ObjectType) | Yes |
Apex Class | Yes |
Apex Trigger | Yes |
Flow | Yes |
Lightning Component Markup (typed attribute de-ref) | Yes |
Process Builder | Yes |
Quick Action | Yes |
Lightning Page (Record Page) | Yes |
Custom Metadata Record Lookup | No |
Custom Tab | No |
Reports | No |
Report Type | No |
Profiles / Permission Sets | No |
Lookup Relationship Field | No |
sfdx force:data:soql:query --usetoolingapi --query "SELECT MetadataComponentId, MetadataComponentName, MetadataComponentType, RefMetadataComponentId, RefMetadataComponentName, RefMetadataComponentType FROM MetadataComponentDependency Where RefMetadataComponentType = 'GlobalValueSet'"
Global Value Set | |
---|---|
Custom Field | No |
sfdx force:data:soql:query --usetoolingapi --query "SELECT MetadataComponentId, MetadataComponentName, MetadataComponentType, RefMetadataComponentId, RefMetadataComponentName, RefMetadataComponentType FROM MetadataComponentDependency Where RefMetadataComponentType = 'FieldSet'"
Field Set | |
---|---|
Apex Page | Yes |
Apex Class | No |
sfdx force:data:soql:query --usetoolingapi --query "SELECT MetadataComponentId, MetadataComponentName, MetadataComponentType, RefMetadataComponentId, RefMetadataComponentName, RefMetadataComponentType FROM MetadataComponentDependency Where RefMetadataComponentType = 'OrchestrationContext'"
Orchestration Context | |
---|---|
Custom Object | Yes |