The documentation suggests that you can query MetadataComponentDependency using the Bulk API.

It seems to work fine in my scratch org sandboxes, but not in a DE org. Does anyone know if this is this a documentation bug, or is it just developer orgs that it doesn't work? Or perhaps it doesn't work in Production orgs either.

In a developer org, I receive the response:

[ {"errorCode" : "INVALID_TYPE", "message" : "sObject type 'MetadataComponentDependency' is not supported." } ]

  • This works in developer org with tooling api (select MetadataComponentType from MetadataComponentDependency)
    – Vinay
    Commented Jul 15, 2023 at 5:29
  • @Vinay yes it works using just Tooling API, but I'm using bulk api, e.g. /services/data/vXX.X/tooling/jobs/query Commented Jul 15, 2023 at 8:16

1 Answer 1


As per doc, Querying MetadataComponentDependency using Bulk API 2.0 is a beta feature and released only in sandboxes, this will be available in production org when it is generally available.

enter image description here

  • 1
    I really should pay more attention, thanks for point out the obvious :) Commented Jul 19, 2023 at 7:54
  • still seeing this error in 2024... (bulk 2.0 is GA)
    – NSjonas
    Commented May 8 at 15:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .