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
srk goudsrk goud 

What is schema what is SObjectType what is schema.SObjectType

Amit Chaudhary 8Amit Chaudhary 8
Schema Is data about data. SObjectType is used to check the object type. Pleas try below code it will give you list of object in your org
 
Map <String, Schema.SObjectType> schemaMap = Schema.getGlobalDescribe();
List<String> entities = new List<String>(schemaMap.keySet());
For(String name : entities)
{
  System.debug('----->'+name);
}

Please let us know if this will help you
 
Anand ManhasAnand Manhas
Schema is defined as a logical representation of data in a Database. The data stored in the database is different compared to what you actually see(Tables containing rows and columns). So, schema.sObjectType defines the datatype of your schema object.