100 Salesforce Quick Questions For Revision
100 Salesforce Quick Questions For Revision
A mini page layout contains a subset of the items of the existing page layout.
Moreover, the layouts inherit record type and profile associations, related lists, fields,
and field access settings from their associated page layout.
Several buttons can be overridden such as Edit, New, or View in Salesforce Classic,
Lightning Experience, and mobile independently. Moreover, you might override few
standard buttons with visualforce pages. Also, if you can override the standard
button with visualforce page, VF page should use standard controller to an object
which is related to standard button.
Q3. What do you mean by Apex transaction in the terms of Admin Salesforce?
It basically represents a set of operations that are executed as one unit. These
operations include the DML which is responsible to query records. All the DML
operations in a transaction either complete successfully, In case an error occurs
even in saving a single record, the entire transaction will be reverted back.
In layman terms, Salesforce objects are database tables that permit the user for
storing the data specific to a company. There are a total of two major object types,
Standard and Custom.
Then select the corresponding object link > Under Search Layouts section > Click
Edit
This will lead to Object Tab > Move the needed fields from Available Fields to
Selected Fields. > Click on Save >
If we delete the parent object record all the child object records relationship’s field
value will be get deleted. (Entire record won’t be get deleted)
Q7. Can you edit an apex trigger/ apex class in a production environment? Can you
edit a Visualforce page in a production environment?
No, there is no scope of editing an apex class or trigger while in a production mode.
However, Visualforce pages can be created and edited in both sandbox and in
production.
Q8. List all the types of templates that are used to send emails in Salesforce.
Summary Reports
Joined Reports
Matrix Reports
Obviously, we can mass delete reports in Salesforce. You can find the option for the
same under Data Management in Setup.
Skinny tables are used to access frequently used fields and to avoid joins in
Salesforce. Also, it will largely improve the performance. Skinny tables are highly
effective, so much so that even when the source tables are modified, they will be in
sync with source tables.
Software developers from around the world will unanimously agree that writing code
in test classes makes debugging more efficient. Why? That is because test classes
help in creating robust and error-free code be it Apex or any other programming
language. Since Unit tests are powerful in their own right, Salesforce requires you to
write test classes in Apex code.
Field update – Users have the ability to update a field of the same object or the fields
of the parent objects which are at master side in master-detail relationship.
Email alert – Users are allowed to send emails if the criteria meet
New task – There is the option to create a new task
Outbound Message – It helps in making a callout
Q15. What is the feature of list view in salesforce?
List View allows you to see a filtered list of records, such as contacts, accounts, or
custom objects. Moreover, they are stored within a Custom Object component. The
component can represent a custom object or a standard object, like accounts.
Test classes can be determined easily because every test class will be annotated
with the @isTest keyword. In the same way, if any method has the keyword
testMethod, it will be treated as a test method.
Roles are added optionally whereas profiles are considered to be the mandatory
basic requirements needed to set up a user. Profiles help in controlling Create,
Read, Edit, Delete (CRED) and other object privileges. It also involves system
permission that the user carries like data export.
When considering roles, it is used for sharing records across different enterprises. It
provides users with the record access that is owned by the people and works in a
hierarchical fashion.
Q21. Why do we need to write test classes? How to identify if a class is a test class?
After developing an apex class or apex trigger we should write the unit tests and
ensure that we are able to execute at least 75% of the lines of code. If you are
moving the code from sandbox to production, you need to include all the test classes
at the time of deployment and salesforce will run all the test classes which you
included for the deployment.
Q22. How many callouts to external service can be made in a single Apex
transaction?
A single Apex transaction can make a maximum of 100 callouts to an HTTP request
or an API call.
In real life, you might have seen bridges. The main function of the bridge is to
connect from one end to another. Similar case happens with salesforce, here when
two objects are linked to each other via medium, then it is known as lookup
relationship.
Q24. Can you define a transfer record in salesforce?
The word transfer itself tells you that salesforce is talking about transferring the files
from one place to another. Hence in order to move a file from one destination to
another. You need permission from a salesforce professional (let’s say professional
1) to transfer it to another professional (lets say professional 2)
In salesforce, a term can be used in multiple ways. In this case, audit filed are
nothing but another name for standard fields.
Q28. What are the different types of collections in Apex? What are maps in Apex?
Triger.new is a command which returns the list of records that have been added
recently to the sObjects. To be more precise, those records will be returned which
are yet to be saved to the database. Note that this sObject list is only available in
insert and update triggers, and the records can only be modified in before triggers.
Q30. Is there any chance by which we can create RUS on the master object?
When we talk about apex triggers then it can be divided into two segments the first
one previous trigger and other is known as the later triggers. Please note that
previous triggers can also be called as before triggers and later triggers can also be
called as after triggers in case of before triggers, they have their usage in the
process of updating and validating the expense of record in salesforce. A care is
taken that they should not get preserved in the record.
SOQL has its usage to put forward the queries which is responsible for recording the
stuff contained in the database.com.The two kinds of SOQL Statements in
salesforce are as under- The very first is Static SOQL and other is SOQL statement
is called as Dynamic SOQL.
Q33. Is it possible to write test code inside of an apex class or an apex trigger?
We cannot write test code (test methods) inside of the apex trigger. From API
Version 28.0, we cannot write the test methods inside of an apex class which is not
decorated with @isTest. We can write test methods only in a class which is
decorated with @isTest.
Q34. State the most important difference between better and setter methods?
Getters and setters are used to protect your data, particularly when creating classes.
For each instance variable, a getter method returns its value while a setter method
sets or updates its value. … The setter method takes a parameter and assigns it to
the attribute
Generic sObject means, it can be of any persisted SFDC objects type. … sObject is
the name of the generic abstract type that can be used to represent any persisted
object type.
Q36. How does you find how many users are there is Apex code?
For an object based on the Record Type, we can show different fields and different
picklist values by assigning different page layouts for the record types and profiles.
After creating the record type, on the record type detail page user can see all the
picklist data type fields, user can edit the picklist and decide which values should
display for this particular record type.
Developer Sandbox
Developer pro sandbox
Partial data sandbox
Full copy sandbox
Q40. What is the object relationship in salesforcedotcom (SFDC)?
It is used to link custom object records to standard object records in a related list.
Q41. If required can two users share the same profile? If yes, how?
Q42. Let’s say that the two objects have been merged using the r/s which appear as
a field in the secondly record. How will it appear in the primary record?
In primary record it will come as related list. Now you have to know when two
objects are connected as per clients needs then the two objects behave diffenly. One
behaves as custom object and the other r behaves as standard object
Q43. There are multiple bindings used in visualforce. Can you name them?
There are three types of bindings in visualforce They can be stated as action
binding, component binding and data bindings. Data binding portrays all the data that
is present in the controller. Action binding refers to all the action methods that are
present in the controller. Finally, in case of component bindings, it refers to the
process of the components that is present in visual force page.
Q44. How many different types of data can a set accumulate in salesforce?
An assemblage of six data types can be accumulated in a set. These are known as
built-in Apex types, primitive types, collections, user defined types, collections,
primitive types, and sObjetcs.
Q45. Out of two apex class, identify the most important difference?
The two apex class can be regarded as public class and the global class. The term
global itself states that when particular information can be accessed all over the
salesforce, then it can be termed as global class. In global class, you don’t need
namespaces. In public class, namespace is required.
Number of DML statements per transaction: 150 (as a whole including insert, update,
delete and undelete)
Q47. Will you be able to customize visualforce and Apex directly in the production
org?
On a record detail page we can embed visualforce pages. Assume that you are
displaying inline VF page on Account record detail page. VF page should be
standard controller to Account Object.
Use aura:method to define a method as part of a component’s API. This enables you
to directly call a method in a component’s client-side controller instead of firing and
handling a component event.
A standard field record name can have data type of either auto number or text field
with a limit of 80 chars.
Q56. What are the various events on which a trigger can fire?
You can write triggers that fire whenever one of the following operations occurs:
DML statements ( INSERT , UPDATE , DELETE ) on a particular table or view,
issued by any user. DDL statements ( CREATE or ALTER primarily) issued either by
a particular schema/user or by any schema/user in the database.
Q58. How can we use Lightning Components with the Salesforce1 Mobile App?
From Setup, enter Tabs in the Quick Find box, then select Tabs. Click New in the
Lightning Component Tabs related list. Select the Lightning component that you
want to make available to users. Enter a label to display on the tab.
Salesforce lightning Spinner is useful while the data being loaded on component
body. Lightning Spinners is CSS loading indicators that should be display when
retrieving data from server or performing slow computations.
Hi, API stands for Application Programming Interface. –> Salesforce provides
programmatic access to your organization’s information using simple, powerful, and
secure application programming interfaces[API’s].
A user can activate up to 5 batch jobs at a time without any potential issue.
Q65. Differentiate between the detail page and the edit page?
Whenever user try to create a new record or edit an existing record user can input
the values for the fields, this page is nothing but edit page.
After creating a new record or editing an existing record, user can see the
information of the record, this page is nothing but detail page.
Q66. What is the use of writing sharing rules? Can you use sharing rules to restrict
data access?
No, sharing rules cannot restrict data access. Sharing rules are used by
administrators to automatically grant users within a given group or role access to
records owned by a specific group of users.
Static dashboards are the basic dashboard with fixed view (Single user perspective)
and which is visible to any user who has made a report out of his data.
Q68. Can you have a roll-up summary field in case of a Master-Detail relationship?
Yes. You can have a roll-up summary in case of a master-detail relationship. But not
in case of a lookup relationship. A roll-up summary field is used to display a value in
a master record based on the values of a set of fields in a detail record.
In Salesforce, data skew occurs when more than 10000 child object records are
related to a single parent object record, or more than 10000 records of any object
are owned by a single Salesforce user. This skewness leads to major performance
hits and long-running processes which are something that one should avoid.
All custom settings data is exposed in the application cache, which enables efficient
access without the cost of repeated queries to the database. This data can then be
used by formula fields, validation rules, flows, Apex, and the SOAP API.
The fields which are declared as Primary key, Foreign key, custom fields which are
,marked as unique or an external ID are auto indexed.
Q76. State the most important difference between better and setter methods?
Getters and setters are used to protect your data, particularly when creating classes.
For each instance variable, a getter method returns its value while a setter method
sets or updates its value. You may validate the given value in the setter before
actually setting the value.
Q77. List out the data types which can be used for defining External ID’s.
Auto-Number, Text, Number, and E-Mail are some of the data types can be used to
define external ID’s.
Tab name will be decided based on the Plural Label of the custom object, to rename
go to corresponding object detail page and rename the plural label.
Salesforce track sales Performance by: Use the performance chart on the Home
page in Lightning Experience to track your sales performance or the performance of
your sales team against a customizable sales goal. The performance chart displays
data based on your sales team’s opportunities if you have an associated team.
Q84. Does the user can create insert their own custom logo while creating their own
custom applications?
Yes user can upload their custom logo in documents and then they choose that logo
for organization.
You can call an Apex class from Trigger as well. Triggers are called when a specified
event occurs and triggers can call the Apex class when executing.
Each object can have one or two masters or up to 8 details. You can have a Total of
40 Relationship fields with a Maximum of 2 Master-Detail Relationships. So you can
have all 40 as Lookup Relationship fields, 38 Lookup and 2 MD 39 Lookup and 1 MD
relationship fields on an object.
The following fields are indexed by default: primary keys (Id, Name and Owner
fields), foreign keys (lookup or master-detail relationship fields), audit dates (such as
LastModifiedDate), and custom fields marked as External ID or Unique.
JavaScript remoting is a tool that front-end developers can use to make an AJAX
request from a Visualforce page directly to an Apex controller. JavaScript remoting
allows you to run asynchronous actions by decoupling the page from the controller
and to perform tasks on the page without having to reload the entire page.
apex:inputText: An HTML input element of type text. Use this component to get user
input for a controller method that does not correspond to a field on a Salesforce
object.
To gain access to your security token, go to “Setup” (appears in the top right corner,
under your name). In the left side menu column (under Personal Setup), open the
drop down item “My Personal Information.” The option to reset your security token
will appear right under password reset option.
In Salesforce, it is the Governor Limits that controls how much data or how many
records you can store in the shared databases. Why? Because Salesforce is based
on the concept of multi-tenant architecture. In simpler words, Salesforce uses a
single database to store the data of multiple clients/ customers.
Q95. What is the difference between a standard controller and a custom controller?
A custom controller is the user defined an Apex class that implements all of the logic
for a page without leveraging a standard controller. Whenever the visualforce pages
need to run entirely in system mode and it does not enforce the permissions and
field-level security of the current user the custom controller works.
Q96. Is it possible to bypass Grant Access Using Hierarchies in the case of standard
objects?
No, by default, the Grant Access Using Hierarchies option is enabled for all objects,
and it can only be changed for custom objects.
Q97. What will happen to child records if we delete a parent record in case of a
Lookup Relationship?
In the case of Lookup Relationship, if you delete Master Record, all corresponding
Child Records will not be deleted. But if you want to delete child records in this case,
you can create a trigger through which on master record deletion the child records
will get deleted. It will behave like a master-detail relationship.
Make sure that you have in-depth knowledge of all the basic concepts used in
Salesforce. These Salesforce Interview Questions are based on the trends in
previous years. Moreover, we hope that it will help you to crack almost every
Salesforce interview in your career.