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
DevelopersDevelopers 

How to fetch existed profiles and vfpage in the salesforce org with out Soql queries?

Hi Friends,

I would like to display existed profiles and vf pages on the vf page.

I have idea about using sobject.getdescribe() methods to fetch the metadata values with out using soql queries. I used these to fetch the recordtype id details.

Now, the same i would like to fetch all the existed profiles(standard and custom profiles both) and all the developed VFPages in the salesforce org.

Please help me in this how to fetch these details without using SOQL queries.

Thanks,
Phanikumar
bob_buzzardbob_buzzard
Describe gives you information about the schema, but profiles and VF pages are data - i.e. they are records that have been created matching a particular schema sobject.  There's no way to do this without SOQL queries I'm afraid.