2

I'm trying out the Dependency API (Winter '20 beta release) to help me draw package boundaries.

I ran a test query from the Dev Console using the Tooling API but immediately hit the error

[object Object]: Dependency API is not enabled.

Perhaps I misunderstand the availability of beta features, but I didn't think I'd have to opt in to anything. My org is on the Winter '20 release.

  • Also, FWIW, this same Tooling API query is working in a Winter '20 sandbox – Brent Bow Oct 18 at 3:44
2

Clarification provided by Vladimir Gerasimov about the current Winter '20 Beta functionality:

Apologies for the confusion. Since Dependency API is currently in beta, it's only available in sandboxes.

I think they way it's documented in our release notes is a bit confusing as it says: Where: This change applies to Lightning Experience, Salesforce Classic, and all versions of the Salesforce app in Professional, Enterprise, Performance, Unlimited, and Developer editions, sandboxes only.

It's currently not supported in production DE orgs. Good news are that we are planning to expand this beta into production in the next release.


I tested it in a Sandbox (cs93) with the developer console. It seemed to be enabled.

enter image description here

The same SOQL query Select Id from MetadataComponentDependency in a production org produced a GACK for me... so that is something I'll follow up on.

[object Object]: An unexpected error occurred. Please include this ErrorId if you contact support: 1691316497-63528 (-541748943)

On NA87 I got the same error message you did:

DEPENDENCY_API_UNSUPPORTED_EXCEPTION
[object Object]: Dependency API is not enabled

enter image description here

The release notes say:

Where: This change applies to Lightning Experience, Salesforce Classic, and all versions of the Salesforce app in Professional, Enterprise, Performance, Unlimited, and Developer editions, sandboxes only.

So I'd expect it to work in a production org. I'll message the PM to see what is going on.

  • Thank you for testing and passing this on, Daniel! May I ask how you found the right community Chatter Group and PM for this question? I'd like to collaborate with PMs/product teams (with similarly vetted and well-formulated questions) in the future. – Brent Bow Oct 17 at 21:59
  • I was on the pilot for the dependency API last year and presented on it at Dreamforce. So I'd been in and out of the group for a bit. I know Vlad as well. He's a great PM for helping out the community, so assuming he isn't crazy busy we should get some help. That said, we are in the lead up to Dreamforce, so lots will be going on withing Salesforce. – Daniel Ballinger Oct 17 at 22:22
  • I see. I'll follow that thread you started. It's working for me in a Winder '20 sandbox, so there seems to be a definite work-around... – Brent Bow Oct 18 at 3:54
  • Ha, @Daniel Ballinger, I think it was right in front of our noses and we missed it. At the end of your final quote, from the release notes, it says "sandboxes only" (presumably with the exception of dev orgs). Granted it doesn't explain the GACK – Brent Bow Oct 18 at 6:09
  • 1
    Vladimir responded, "Since Dependency API is currently in beta, it's only available in sandboxes... It's currently not supported in production DE orgs. Good news are that we are planning to expand this beta into production in the next release." If you want to update your answer with this I'll mark it accepted. Thanks again, Daniel! – Brent Bow Oct 18 at 16:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.