function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Amit M 3Amit M 3 

Connected App Metadata from a managed package


I am trying to read the connected app metadata, which is in a managed package. I am using Metadata service class to read the metadata. However currently it is throwing exception: System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 66999130-178868 (-1199278215).

But same code works fine when I am reading a connected app metadata which is not inside managed package.

That gives me impression, Salesforce doesn't allow retrieving of connected app metadata from inside a managed package. Is that a fair understanding?

Thanks for help in advance!