Interview Questions
Interview Questions
When you search on the web about Salesforce, there are thousands of
articles, telling you what is Salesforce and what does it do. The writing is so
complex that don’t learn the platform. Instead, out of disappointment you
begin to search other search page results of what the platform actually is.
In this case, Salesforce acts as the parent company and its subsidiaries are
Pardot, MuleSoft, Heroku, tableau, demand Inc and salesforceiq.
All the corporate companies use a console app for their business needs. In
case of custom app, they are mainly use by business owners who wants to
develop an app that will suit their business requirements from time to time.
Both of them are widely used in the market.
In our recent article A brief guide to Salesforce CPQ we have given a detailed
information on that module.
9. Can you name some reports that might be present in
salesforce – tricky question?
A total of four reports are present in salesforce. Each report has its own
individual functionality to make business productivity easier in salesforce.
These are:
columns
4. Joined report: A report that is formed due the mixture of any two
combination of report. Like summary report plus matrix report can give you
a joined report. Similarly, tabular report and matrix report can give joined
report.
10. What do you understand by audit trail in salesforce
Suppose your salesforce team contains twenty members. Each member has
done some changes in the project. The audit trail will address these changes
made by other members to you.
In that way you will always know who modified a project at the last minute.
Using the audit trail, you would get to know the change made the team
member, the time of the change made and the username of the team
member.
members can see the changes and modify material according to their
operations, rather than investing all the time in watching the departments
12. Can you state the difference between profile and role in
salesforce
Role is basically the level of access that you have a salesforce. Works as any
organization hierarchy. In corporate environment the CEO takes the critical
decision, the management takes care of the employees and the employees
does the work. Similar case goes with salesforce.
When you act as the parent to a child, then you take care of the needs of the
child and the behavior of the child depends on how you treat them. Same
goes with salesforce, the master acts as the complete authority; if the master
gets deleted then the detail gets deleted also.
When dealing with master detail relationship in salesforce, you will have the
opportunity to create fields in master record which will automatically calculate
the sum and average of the child
24. What is the most important thing that you consider in master
detail relationship?
The most important thing that should be considered in master detail
relationship record accesses. Meaning you need to always give the authority
to the master. So, when the parent gets deleted the child gets deleted too.
There you will find an option known as “go “which is present just beside the
“all option”. When you click on the go option you will be able to create new
view in salesforce, which will give you the records that is present in
salesforce
With the help of queue, different salesforce members can be added for each
object. Here for clothing line, let’s say the number of salesforce individuals
assigned is 5, for technology there is another 10, for food items there is 8. The
list goes on like this. Every member becomes the owner of each object
how to pitch to the client. Should be via email to case? Web to case? ,
Changing the data types from one to another. For example: changing
exception.
44. State some junction object uses in salesforce?
A Junction object is defined as the custom object consisting of a relationship
called two master-detail relationships containing two different kinds of record
types.
2. Customization of the related lists on the page layouts of the two master
objects.
Once you click on the option known as structure roles, you will have the
privilege to new role which will appear as add role. Once you have added
your role, all you need to do is hit save. Just like that, you have created a role
hierarchy in salesforce.
Another way is to opt OWD which gives organization the privilege to keep files
completely confidential, be completely transparent to the public or give the
public the authority to read and write. You can follow the path by going to
setup followed by Security Controls. Then, you can access the sharing
settings for the customization and finally click on ‘Edit’.
Criteria Based Sharing rules is the next way to share records. It is used in
those cases where sharing of records is needed based on condition like share
records to more than one user.
You also can share a record using Apex sharing where the creation of a
record to the share object is required to share the records using apex.
Salesforce interview questions and answers
47. State the major differences between. Insert () and insert () in
salesforce?
Insert ():
A partial insert and Rollback are not supported. On using the DML statement
(Insert), during the occurrence of an error, the further working of execution will
take a halt. In this particular case, with the usage of Apex code a flaw can be
eliminated and you will find that not even one record will be inserted to the
handling database.
. Insert ():
It is one of the ways to handle database methods are static in nature called
static method available in the class inside the Database. A partial insert and
Rollback are also said to be supported. It includes the all-or-none parameters
that default true.
While using this. Insert () method in big projects, during the occurrence of an
error, the remaining records will be inserted/updated except record throwing
an error.
Our instructors train you on scenario based and project based interview
questions with answers and sends daily material over email.
Creation of records
Launching a flow.
The following boundaries of a transaction are defined such as- boundary can
be a Visual force page, an anonymous block of code or it can be a trigger or a
class method.
In case of after triggers, they are used in the process of accessing the field
values embedded in the records which are present inside the system
database. When the help of later triggers, one can modify information that is
stored in the database
Once a visual force page called which already contains an attribute called as
page controller attribute, an apex class object will be created and later defined
by the controller. Also, for apex class to be defined completely an object has
to be created; once done, the involvement of the constructor is addressed.
It finally gives the permission to rollup results associated with the queries
rather than processing the certain number of database saved as records as
per your own code. The syntax can be defined as: [Group list created through
group filed]
57. Explain how java script remoting in Apex controller
There are 3 parts of java script Apex controller:
The first one is remote application. It is often being added to the Visual Force
page and written in the JavaScript. Another part relates to the definition
through distant. It is majorly contained in your Apex controller class. The last
part deals with the remote application that allows for a call back facility.
Hence, it is being added or can be said to be included in your Visual force
page contained in the JavaScript.
59. State the most important difference between better and setter
methods?
While using the salesforce platform, there will be situations, where you need
to need to transport a value from the controller straight into the VF page. The
medium that is used for this transfer can be known as getter methods.
Similarly when you want to pass the value back to the controller, you need a
medium known as the better methods.
When SOQL is used, the salesforce professional has the facility to search
only one object at a particular interval of time. SOQL can be passed down to
both triggers and class and will provide you the facility to return records.
SOSL can be defined as sales object search language. Here a query can be
searched only through text, email or phone call. They can be passed down to
class but not to the triggers. Also, gives you the facility to rebound record.
71. State the number of records that can request for a record
return
5000 records through SOQL can be requested for query return. In case of
SOSL the number of records has to be 2000.
74. Name the methods where on how apex job can be executed?
To execute apex job in salesforce, a salesforce professional needs to use a
method known as database execution in order to initiate the process. Here
two syntax needs to be used which are both based on public static id. One
public static id would contain class name and the sObject name and the other
public static id would contain integer’s scope, class name and sObject.
77. The CEO of the particular company wants to reward the best
employee of the company who has done the maximum number of
sales. The catch being, the company operates in 17 countries
and wants the name of each employee who has made the
maximum contribution. What kind of report should be used?
In this case, the report used should be matrix report
79. Let’s say that the two objects have been merged using the r/s
which appear as 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
Object: inventory
Users: 10 members
95. What is Apex transaction in Admin Salesforce? What does that mean
in salesforce?
When a salesforce professional tries executing several activities at particular
time then it can be termed as Apex transaction. All sorts of DML operations
contained in a certain number of transactions are either complete
successfully.
107. What are the main things need to consider in the “Master-Detail
Relationship”?
Record level access is determined by the parent, Mandatory on child for
reference of parent, cascade delete (if you delete the parent, it can cascade
delete the child).
113. How to call java script using Static Resource in Visual Force page?
Add java script file in Static Resource setup -> develop -> Static Resources ->
click on ‘New’ -> Name: filename and add file from local desktop and save.
We can use that file as follows in Visual Force page
OWD:
Defines the base line setting for the organization. Defines the level of access
to the user can see the other user’s record OWD can be Private, Public Read
Only, Public Read and Write. Setup -> Security Controls -> sharing settings ->
Click on ‘Edit’
Manual Sharing:
Manual Sharing is sharing a single record to single user or group of users. We
can see this button detail page of the record and this is visible only when
OWD setting is private. Criteria Based Sharing rules: If we want to share
records based on condition like share records to group of users Whose criteria
are country is India. Setup -> security controls -> sharing settings -> select the
object and provide name and Conditions and save
Apex sharing:
Share object is available for every object(For Account object share object is
AccountShare ). If we want to share the records using apex we have to create
a record to the share object.
126. How we can change the Grant access using role hierarchy for
standard objects?
Not possible.
130. How many field dependencies we can use in Visual Force page?
Maximum we can use 10 field dependencies in VF page.
Salesforce interview questions and answers; Report types, Tabular, Summary, Matrix and Joined
Reports
136. What are the Reports Types?
4 Types of Reports in Salesforce
Tabular Reports: We can only displays the grand total in the table form.
Summary Reports: It is a detail form of report in which the grouping done
based on Columns.
Matrix Reports: It is a detail form of report in which the grouping done based
on both Rows and Columns.
Joined Reports: We can join the two or more reports in the single report
displayed in the form of blocks.
137. What is Dashboard?
Dashboard is a pictorial representation of report. We can add up to 20 reports
in single dashboard.
143. What is the batch size limit (increment size for batch) in Data
Loader?
Data Loader batch size limit is maximum of 200 per increment and if we
selected Use Bulk API then maximum value is 10,000.
144. What is the difference between Export and Export All in the context
of Data Loader?
Export enables user to export all the records for a particular object excluding
the records in the recycle bin or soft deleted records. Export All enables user
to export all the records for a particular object including the records in the
recycle bin or soft deleted records.
147. How many relationships included in SFDC & What are they? What is
a junction object?
We are having five types of relationships, they are Lookup Relationship
Master-Detail ,Hirearchy ,External and Many-to-Many Relationship.
1. Lightning Experience It comprises of Lightning Experience, template-based communities as well as Salesforce
app. It is a set of user interfaces with optimization for speed.
2. Lightning It is a JavaScript framework that comes along with standard components and enables th
Component developers to create components which can be reused for standalone applications. Thes
Framework are built by customization of Lightning experience, template-based communities as well
mobile apps created with Salesforce1.
3. Lightning App It offers a fast, easy way of app building and customizations with the help of drag-and-dr
Builder and features. Customization of Lightning Experience is done by using Lightning App Builder fo
Community Builder Salesforce 1 mobile app. On the other hand community builder helps in customizations o
template-based communities.
4. Lightning Design LDS makes it possible to build apps matching the looks of the Salesforce 1 mobile app an
System (LDS) Lightning experience. It has modern UX best practices and style guides.
5. Lightning Exchange Start with development with a set of 70 + partner components as a section of AppExcha
3 Helper The developer can write the common logic inside helper used by different controller
methods, avoiding any sort of repetition
7 SVG This icon in the Lightning App Builder gets displayed before the component.
8 Design It not only helps in component reusability but also controls which all attributes need
exposed for the tools like Lightning App Builder.
Q #24) Are there any options for Lightning Record Page Assignment?
Answer: It can be assigned in different ways, such as:
Org default
App Default (overrides the assignment at the org level)
App Record Type Profile (overrides the assignment at the org and app level).
Q #25) How to create a custom Lightning Record Page?
Answer: We can create it with the following steps:
Setup->App Builder in Quick Find Box->Select Lightning App Builder-> New->Record
Page-> Name the page as <xxx>Select Opportunity->Choose Header, Sub header, Right
Sidebar template and Click Finish.
Please go through the link for further details on creating a custom Lightning Page.
Q #26) What are the types of Lightning Record Pages in Salesforce?
Answer: Here are the types enlisted below:
App Page
Home Page
Record Page
Q #27) What are the attributes? What are the parameters required?
Answer: Attributes are the variables for storing values. The attribute is defined with a name,
type, default, description, and access. The <aura:attribute> tag is used that requires the
values of name and type attributes.
However, name and type are the only required parameters. This is shown below:
Q #28) Which interface to use if you want your component to be available for all
pages?
Answer: You can use the flexipage:availableForAllPageTypes interface.
Q #29) Which interface can be used to get the id of the record from the record Detail
page?
Answer: The force:hasRecordId interface can be used for getting rid of the record from
the record Detail page.
Q #30) Which interface should be used to override a standard action?
Answer: Here you can make use of the Lightning:actionOverride interface.
Q #31) Which interface is for using components in a quick action?
Answer: The interface used here is force:lightningQuickAction.
Q #32) Which interface to use a component in the record home page?
Answer: The interface used here is flexipage:availableForRecordHome.
Q #33) Which interface is used if you want a component to be used as a tab?
Answer: The interface used here is force:appHostable.
Q #34) Why Lightning:isUrlAddressable interface is used?
Answer: The lightning:isUrlAddressable interface is used when navigating to the
component and also when the component to be navigated implements this interface.
Q #35) How to find data changes using data handlers?
Answer: You can configure a component for invoking a change handler when the value of
the attributes in one of the many components changes.