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

I need to display connected apps list on visualforce page-- Is it possible ?


i want to display my org connected apps list on visualforce page. how can i quried (SOQL) in apex class.


The connected app information is not stored in any object in salesforce as of now (as far as exposed objects are concerned).Hence,you would not be able to query in SOQL.

The only way you can get this info is by making MetaData API call.Go through the below link to get sample rquest and response and fields which are available :-

Hi Vinit,

    Thanks for your reply, do you have any sample code for MetaData API call for request and response?
Please guide me how to do Metadata API call.

To make metadat API call,you need to generate metadata WSDL file and consume it in your application.

Follow below steps to generate the same :-

1.) Log in to your Salesforce account. You must log in as an administrator or as a user who has the “Modify All Data” permission.
2.) From Setup, click Develop | API.
3.) Click Generate Metadata WSDL and save the XML WSDL file to your file system.

Go through the below docs for other documenation:-

If this helps,please mark it as best answer to help others :)