In Salesforce the objects are the database tables, that store data. This data is specific to a particular organization. Like any other DBMS (Database Management system), salesforce stores the data in a relational database. It has got the user-created data as well as the system data. The system data can be anything related to the platform itself, such as configurations, templates, etc.
User-created data can be any kind of data that is created by the users, like sales data table, invoicing data table, etc. These database tables or more specifically relational database tables are referred to as API objects in Salesforce. It can be also referred to as only objects in Salesforce. Salesforce as a platform can contain three types of objects, standard objects, custom objects, and external objects. Here we will specifically discuss the standard objects in Salesforce
The standard objects are the legacy objects or the native objects that are provided by the Salesforce. These objects are mandatory and required by the platform for performing various functions. Some good examples of standard objects will be accounts, leads, opportunities, campaigns, cases, etc. The standard objects have been created by salesforce itself, to be used on the Salesforce platform. These objects directly interfere or manage the environment and settings of the salesforce platform. We can just think like the system files that are required by an operating system to function.
The standard objects are available straight out of the box, we don’t need to configure or install an additional package or subscribe to additional services. Once a user logs in to the salesforce, he can see these standard objects listed. These objects can be easily tracked from the object manager. To access the object manager, one needs to go to Settings, and then in the quick find box, type “Object Manager”. The object manager can be used to manage both, standard and custom objects.
There are multiple settings of the objects, that can be set through the object manager. However, for standard objects, we can only explore the settings, and cannot customize. Go to the object manager, select the standard object. For example, you want to explore the properties of “Account”, then you can select from the Object Manager, and then go the schema builder to explore the properties of the selected object.
Similarly, other standard objects can be selected and explored. There are multiple standard objects available in Salesforce, and all of them might not be important. But, there are a few of them which are important, as we will encounter them quite often while we work on the Salesforce platform. The section below lists some of the important standard objects. Also, if you are a developer and looking to develop lightning web components on the Salesforce platform, then definitely it is good to know about the important standard objects.
create(), update(), delete ()
etc. Key fields of this object include AccountID, Comments, CaseNumber, Close date, and ContactEmail. In this AccountID is related to the other objects, including the Accounts object. Create(), delete (), merge (), getUpdated ()
and search ()
. Important fields include AccountID()
, AssistantName, AssistantPhone , BirthDate, Department and Description.create(), delete(), describeLayout(), describeSObjects()
and getDeleted()
. Common functions include AccountID, AssetLevel, Availability, and ContactID. Both the AccountID and ContactID field relates the Asset object to both the Contact object and the Account object.Since these objects are relational tables, each field can be accessed by using a normal SQL query.
A sample query has been shown below,
SELECT
(SELECT ActivityDate, Description
FROM ActivityHistories)
FROM Account
WHERE Name Like 'SAM%
This simple query will return the activity data, activity description from ActivityHistories
field, that is stored in the Account object. It will show only those users whose names start with SAM.