+ Start a Discussion
yarramyarram 

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

Hi,

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


Thanks,
Yarram.

Vinit_KumarVinit_Kumar
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 :-

http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_connectedapp.htm


yarramyarram
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.

Thanks,
Yarram
Vinit_KumarVinit_Kumar
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:-

http://www.salesforce.com/us/developer/docs/api_meta/

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