Interview Questions for Salesforce
Go through these top Salesforce interview questions to grab your dream job as a Salesforce professional. This list of interview questions contains understanding custom objects, Force.com platform, Salesforce dashboard components, Visualforce, Object Query Language Vs Object Search Language, Salesforce report types, and much more.
- What is an App in Salesforce?
An app in Salesforce is a container that contains a name, a logo, and a group of tabs that work as a unit to provide specific functionality. Users can switch between apps using the Force.com app’s drop-down menu at the top-right corner of every page.
Table of Contents
2) How does Salesforce deploy Sales Tracking?
Salesforce is very meticulous when it comes to recording intricate details like sales numbers, customer details, customers served, repeat customers, etc. Salesforce makes it easy to create detailed reports, charts, and dashboards for keeping track of sales.
3) What is a Master–Detail Relationship?
A Master–Detail relationship is basically a parent–child relationship, in which ‘Master’ represents the parent and other details represent the child. If the parent is deleted, then the child also gets deleted. Roll-up summary fields can only be created on Master records, which will calculate the SUM, AVG, and MIN of the child records.
4) What happens to detail record when a master record is deleted? What happens to child record when a parent record is deleted?
In a Master-Detail relationship, when a master record is deleted, the detail record is deleted automatically (Cascade delete).
In a Lookup relationship, even if the parent record is deleted, the child record will not be deleted.
5) What is SOQL used for?
SOQL stands for Salesforce Object Query Language. It is very similar to the widely used language SQL (Structured Query Language), to query databases. SOQL is specifically designed for Salesforce data and is used to query the Salesforce platform to retrieve data. SOQL is used within Apex & Visualforce to return sets of data.
6) Which database architecture salesforce is based?
Salesforce is based on multi-tenant architecture. The single copy of database is shared with multiple users or client.
7) What is Sandbox?
Sandbox is a copy for production environment which is used to test newly developed visual force pages or any Force.com application.
8) What are different types of sandboxes in salesforce?
Types of Sandboxes are:
- Developer Pro
- Partial Copy
9) Explain custom object in Salesforce?
The custom objects are used to refer specifically to database tables that store data related to company in Salesforce.com
10) How to get the UserID of all the currently logged in users using Apex code?
You can get the ID’s of all the currently logged in users by using this global function: UserInfo.getUserId().
11) What are the three types of bindings used in Visualforce? What does each refer to?
There are three types of bindings used in Salesforce:-
- Data bindings, which refer to the data set in the controller
- Action bindings, which refer to action methods in the controller
- Component bindings, which refer to other Visualforce components.
Data bindings and Action bindings are the most common and they will be used in every Visualforce page.
12) What is trigger.new?
Trigger. New returns a list of records that have been added recently to sObjects. The records that are yet to be saved in the database are returned. Only insert and update triggers have the sObject list, and records can only be modified in before. Trigger.
13) What is a Static Resource in Salesforce?
14) What are the different types of Collections in Apex?
Collections are the type of variables used to store multiple numbers of records (data). Types of collections in Salesforce are:
15) What is the difference between a standard and custom controller?
Standard Controllers are generated automatically for all standard pages. They provide you with all the functionality that a standard page contains, such as editing or saving a record.
Custom Controllers can be written by a developer to override the standard functionality that a standard controller provides on a Visualforce page.
16) What is OAuth?
OAuth is an open standard for access delegation, commonly used as a way to grant websites or applications access to their information on other websites, but without giving them the passwords.
17) What are External ID fields used for?
Certain fields can be defined as an external ID on an object. These can be used in order to match up data from external systems with a unique reference ID. For example, if you need to match up data from an external accounting system to the Accounts in Salesforce, you can use an external ID field to reference the Accounting systems unique ID instead of the Salesforce ID.
18) Differentiate WhoID and WhatId.
“WhoID” refers to people like contacts or leads. Whereas “WhatId” refers to objects. Let us consider LeadID, ContactID are forms of “WhoId” and AccountID, OpportunityID are “WhatId”.
19) Explain the use of writing sharing rules?
Using Sharing rules we can give an access to user or individuals. These access can be edit access (public read and write) or public read only access.
20) Can we restrict data access using sharing rules?
Sharing rules are used to extend the sharing access to users in public groups or role. It’s used only when you want to allow greater access to records. But we cannot restrict data access by sharing rule. If you are not using sharing rule the organization-wide-default sharing setting like Public read only or private will be used.
These are some important Interview Questions and their Answers which will may asked from you in Interview round. Hope this information is beneficial for you.