I'm trying to use the New Dependency API to find usage location of Standard Fields. Due to limitations, you cannot filter by API Name and must instead use via the MetadataComponentId
:
SELECT MetadataComponentName, MetadataComponentType,
RefMetadataComponentName, RefMetadataComponentType
FROM MetadataComponentDependency
WHERE RefMetadataComponentId = '${fieldId}'
For custom fields, you can get this ID by querying the CustomField
table, but AFAIK, there is no programmatic way to get the Id's for Standard Fields.
As expected, the "pseudo text Id" (like the ones listed here) don't work.
Can the Dependency API be used for Standard Fields?