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

Access to backend database of standard objects.

Is it possible to access the overall backend database of standard objects of an organization from apex class?If possible,explain me with an example.


For your kind information i am using developer edition in force platform.


Its urgent.Please help me.





Query Your Instance schema.

Schema.getGlobalDescribe() will get all objects...check which doesnt end with "__C" and filter them out!


Hey thanks for your reply.

My problem is different.So please clarify it


In developer edition, Opportunity (Standard object) has the view from single employee perspective. Generally an organisation will have CRM data with mutiple employees. I am planning to design a visualization API where i have to access Opportunity data of all the employees. i dont know how to access that.


So please help me and review my approach.




Greg RohmanGreg Rohman

Hi Siva.


Take a look at the Apex documentation regarding the "with sharing" keyword, specifically this part:


Apex generally runs in system context; that is, the current user's permissions, field-level security, and sharing rules aren’t taken into account during code execution.


So, by default, in most cases your class will have access to all of the data in your org, unless you explicitly tell the class to enforce sharing rules.


The documentation can be reviewed here:


I think that may help clarify things.