You need to sign in to do that
Don't have an account?

Getting List of Sobjects in the org.
Hi guys,
My requirement is to get a list of all standad and custom object apis in a list.
I dont want to list Objects like RecordType, ApexPage etc.
I want only buesness objects (Such as Account,Contact,Opportunity etc) ,and custom objects if any.
Please Help Me Out.......
My requirement is to get a list of all standad and custom object apis in a list.
I dont want to list Objects like RecordType, ApexPage etc.
I want only buesness objects (Such as Account,Contact,Opportunity etc) ,and custom objects if any.
Please Help Me Out.......
You can get it by using Dynamic Apex: Please let me know if helped.
Regards,
Ramakant
Please check the below code we should use predefined methods which are provided in schema class and also check the code to retrieve object through SOQL Queries.
VisualForce Page:
Apex:
hope it will be helpful.
Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.
Best Regards
Rahul Kumar
sftoolkit.co has a number of useful tools.
https://organizer.enree.co/index.html is a chrome extension that does an org describe amongst other features
The code which you have provided will give only custom objects.My requirement is to also get standard business objects( like account, lead , contact) and to avoid objects like(profiles,record types etc)