Salesforce QA Interview Questions
Salesforce QA Interview Questions
Profile -
a. It controls what the user can do in salesforce.org.
b. It is mandatory for all users.
c. Basically, a profile is a collections of setting and permission that decides which
data and features the user can have access to .
Settings, determine what the can see eg: apps, tabs, record types
Permission, determines, what the user can do eg: create record, edit, delete etc.
d. The most important profile is “System Administrator” - the system administrator
has absolute access to everything.
e. One user can have maximum of 1 profile only.
f. But many users can have the same profile.
g. Profiles - its 1 way of providing the object level permission to the user
h. Its the Profile, which provides - Field Level Security, Page Layouts, Custom
Apps, Record Types, Login and Tabs.
i. There are 2 types of profiles
A. Standard Profile
a. A profile which is given salesforce by default eg:- System
Administrator.
B. Custom Profile
a. A profile, which is created by the user based on their user
requirement.
eg:- Client Services - LEX
Role -
a. It controls what the user can see in salesforce.org.
b. Its an optional for the user
c. It controls the access of records and folders.
d. Using Roles - the manager can also the records which are created or associated
to its subordinates.
============================================================
a.Objects -
i. You can compare an object to a table in the database, where in the database - the data is
stored and in the objects too data is stored.
ii. An object consists of fields and records.
Eg:- An object is a tab in the spreadsheet(excel)
Eg:- Leads, Contacts
b.Fields-
i. U can compare fields to the column in the database.
ii. Both standard and custom objects have fields.
Eg:- Relationship Object has fields like Relationship Name, Base , City.
iii. Its a place where you can store the data(record)
Eg:- A field is the column on the table.
c. Records -
i. U can compare, record to the rows in the database table.
ii. Record is an actual data which is associated to the object
Eg:- A record is a row in the table.
Eg:- the Contact Name - Amrut
d.Org
i. Its a short form of ‘Organization’.
ii.Its a place where all data, configuration and customizations lives.
iii. In order to access it we need to login into it
==================================================
b. Custom Objects
i. These Objects are created by the user
ii.They end with suffix “_ _c” Eg:- Access_Request_ _c
iii. U can edit the custom objects
iv. U can delete the custom objects
==================================================
==================================================
5. What are groups ?
Groups consist of set of users.
A group can contain individual users, other groups or users in a particular role
There are 2 types of Groups
a. Public Groups and b. Personal Groups
============================================================
===========================================================
==========================================================
==========================================================
======================================================
10. What is a sandbox org ? What are different types of sandboxes in salesforce ?
a. Sandbox is the copy of production env, which is used for testing and development
purpose.
b. There are 4 types of Sandboxes
i. Developer (200 MB storage, refreshed daily , used for developing)
ii. Developer Pro (1GB storage, refreshes daily , used for integration testing)
iii. Partial Copy (5GB storage, refreshes every 5 days, used for end-to-end testing)
iv. Full Copy - (Same size as that of production, refreshes in 28 days, used for testing)
In my current project, I am using “Full Copy” Sandbox.
=======================================================
==========================================================
============================================================
Permission Set -
a. It’s not necessary that every user must have a permission set.
b. A user can have more then 1 permission set.
c. A permission set is a collection of settings and permissions that gives users the access
to various Salesforce features.
Note :- At a time we can assign upto 1000 users the permission set.
=============================================================
========================================================================
========================================================================
16. What are the Standard Fields or Audit Fields for every custom object ?
There are 4 types of Standard Fields
i. Owner
ii. Name
iii.Created By
iv.Last Modified By
========================================================================
17. What are Reports ? What are different types of Reports in Salesforce ?
i. Reports is the standard object given by salesforce
ii. Using Reports we can summarize the data & analyze the data as per client requirements
There are 4 types of Reports in Salesforce
a. Tabular Report -
i. Its simple table format
ii. Its a default report type.
iii. In tabular report, the data is just listed without any subtotals.
iv. A tabular report, will just list all the items and it will have a grand total.
v. Tabular Report, cannot be used as a data source in dashboard.
b. Summary Report -
i. It is similar to tabular report, but here we get the sub-totals of the particular
field(column).
ii. Summary Report, can be used as a data source in dashboard.
c. Matrix Report -
i. Its a 2-dimensional report, which allows you to group the data by both row and column.
ii. Matrix Report, can be used as a data source in dashboard.
d. Joined Report -
i. In joined report, you can have multiple reports in 1 report.
ii. We cannot export, joined report.
iii. Joined Report, cannot be used as data source in dashboard.
======================================================================
====================================================================
=================================================================
=================================================================
=======================================================================
=======================================================================
2. Actions -This is the “Then” part of the process IIt consists of actions that should
be performed when the criteria for the workflow is met.
There are 2 types of Actions present in the workflow
A. Immediate Actions - It’s an immediate action which gets executed when a
record is created.
eg :: When the Case is created, an email is sent immediately to the members of
the base
B. Time Dependent Actions - Action which gets executed, after certain duration of
time.
eg:- When the case close date is nearing it send a mail to the members, asking
to work on it.
2. Field Update - It allows the user to change the field value in the record
3. Tasks - It assigns the task to the single user, owner or role. When the
task is assigned to the user - an email is also sent as a notification.
4. Outbound Messages
======================================================================
========================================================================
i. Master-detail Relationship -
========================================================================
27. What are Profile-Level Security / Object-level security ?
a. Using Object-level security we can easily control the data access.
b. It presents the users or group of users from viewing, editing, deleting, creating any
record of any object by setting permission on that object.
c. There are 2 ways of setting object permissions.
i. Profiles - Its nothing but the set of settings and permissions
- Where, settings - determine what the user can see and
permission - determine what te user can do
ii. Permission Sets - It provides additional permission and access to the user.
========================================================================
28. What is Field-level security ?
a. It talks about which field the user is able to see, which field the user is not able to see.
Which field value the user is able to edit and which field value the user is not able to edit.
b. There are 2 ways where we control field-level security
i. Profiles ii. Permission Sets.
c. Each field will have only 2 settings and permissions - Read Access & Edit Access.
d. We can set the field level security, by going to to Profiles -> Field-Level Security
========================================================================
29. What are different levels of data access/data security?
a. Data Security in Salesforce is divided into 4 parts
i. Organization Level - It deals with making the organization secure. So that not
everyone can access the data or apps which are there in the org.
ii. Object Level - It deals with providing access to objects in the Org. CRUD (Create,
Read, Edit/Update, Delete) are controlled using object level security.
iii. Field Level - It deals with providing access to the particular field in an object to the
user.
iv. Record Level - It deals with providing access of record to a particular user. Users will
have access to view an object, but will be restricted to an individual record.
========================================================================
30. What is Record-Level Security ?
a. It determines which individual records the user can edit and view in the object.
b. It is only necessary, if we want to reduce the number of records the user could view or
edit.
c. If we don't want the user to view or edit all the records of the object then in that case, we
implement Record-Level Security.
d. Note :- Object-Level Security and Record-Level Security go hand-in-hand.
eg:- If Object- Level security is “Read” and Record-Level Security is “Private”, then the
Final Access is decided based on the most restrictive access only
(i.e., in this case its “Private”)
e. Note :- No matter what ever permission you have set a Record-Level Security, the owner
of the record should always be able to edit the record.
f. There are 3 permissions on Record-Level Security
i. Public Read/Only - Users can see the record, but not edit it.
ii. Public Read/Write - Users can see the record and also edit it.
iii. Private - User cannot see the record, nor edit the record.
g. We can implement Record-Level Security using 4 ways or methodology.
i. Organisation-Wide Default (OWD) - It will set the base line access for entire org on
that particular object.
It has the least visibility and least access.
ii. Role Hierarchy - Its an hierarchy, where in the user can access the record which are
owned by its subordinates.
eg:- The Manager can access the records which are owned by its resources
(subordinates).
iii. Sharing Rules - It is used to create automatic exceptions.
iv. Manual Sharing - It means manually sharing the record
- It has the highest visibility and highest access.
========================================================================
.
31. What is Organization - Wide Default(OWD) ?
a. OWD determines the baseline level of access for all the users in our organization for the
particular object.
b. Note :- OWD is set for each and every object of the org.
c. OWD provides the least access/ visibility is very low in record-level security.
d. OWD can be set using the below 3 permissions
i. Public Read/Only - All the users of the org, can only see the records - but cannot edit it
ii. Public Read/Write - All the users of the org, can see and edit the records.
iii. Private - Only the record owners and the users above record owner in role hierarchy
could only see the record.
e. How to set OWD in Saleforce ?
i. Go to Settings.
ii. Search for Sharing Settings and click on it.
iii. Click on “Edit” button.
iv. OWD is applied for all objects - so select any of the object and set any of permissions
(Public Read Only , Public Read Write & Private) and save it.
========================================================================
========================================================================
========================================================================
========================================================================
37. What is Field Dependency ?
a. There are 2 fields, the value of the 2nd field is dependent on the 1st field.
b. There are 2 terminologies, when it comes to Field Dependency
i. Controlling Field - The field which controls the value of another field.
eg :- The value of the 2nd field is dependent on the 1st field.
ii. Dependent Field - The field whose value is controlled by the controlling field.
eg :- The value of the 2nd field is controlled by the 1st field.
c. Field Dependency only works for certain fields, and those fields are
i. PickList
ii. MultiSelect PickList - There is not Standard MultiSelect PickList
- There is only Custom MultiSelect PickList.
- It cannot be a controlling field, it is only a dependent field.
iii. Checkbox
d. The reason, why only the above 3 fields the field dependency works is because its only
these 3 fields have pre-defined values and we can only group based on pre-defined
values
========================================================================
38. What is Relationship and what are different types of Relationships in Salesforce ?
a. Relationship is used to establish - relationship between 2 objects.
There are 2 types of relationships in salesforce
a. Master-Detail Relationship
i. Its a parent-child relationship, in which Master is Parent and Detail is Child.
ii.Its one-Many Relationship, where in Master is on One Side and Child is on Many side.
iii.When master object is deleted, the child object gets deleted
eg:- Branch- Student Relationship :: In a college no student can be created without a
branch and in 1 branch there can be many students.
iv. Deleting the parent will automatically delete the child, and it's called Cascade Delete.
v. In Master-Detail Relationship :: the owner of the parent & child object, will be the
same. Which means - the owner of the child object will be deleted and the child object will be
the parent object (So basically the owner of the parent object also owns the child object)
eg:- The branch owner who is parent object also owns the students who is the child
object.
vi. The child object(Detail) will inherit the properties(Security, Sharing) of parent object
(Master).Basically, if the user is able to see and edit the master object records , then only the
user can see and edit the child object records.
Lookup Relationship
a. Here 2 objects are in relationship with 2 objects, but this relationship is not like
master-detail relationship
b. It is divided into 1 type , that is Self Relationship
Self Relationship :-
i. An object relationship to itself, is self relationship
eg:- A case related to another case is an example of Self Relationship (Your phone has
a speaker problem you raise a complaint by creating a case, then after some time Your phone
has a heating issue, so for this issue you again create a case - so the 1st case is related to the
2nd case, is a self relationship)
c. The type of Self Relationship is “Hierarchical Relationship”
Hierarchical Relationship
i. It is the self relationship, on the user object.
ii. The reason it is called a Hierarchical Relationship, is because it shows the hierarchy
of the organization.
========================================================================
39. What is Lookup Filter ?
a. It limits the record available in the lookup.
=======================================================================
40. What is a Roll-Up Summary ?
a. Roll-up summary fields, are used to aggregate(it means, sum, avg, min count etc) the
data of child records and show the aggregated data on to the master record.
b. Roll-Up summary fields, can only be created on the Master-Detail Relationship and not
on the Lookup Relationship.
c. Roll-Up Summary fields, can only be created on the master object in the Master-Detail
Relationship.
d. Roll-Up Summary fields are Read-Only.
========================================================================
41 . What is a Record ID ?
a. Record ID, is used for identifying the record in the salesforce org.
b. Every record has its own Record ID.
c. In Salesforce Lightning env, the Record Id is 18 Digit, and its alphanumeric.
d. In Salesforce Classic env, the Record Id is 15 Digit
e. Its system generates a unique ID and it can’t be edited or deleted.
f. When the user creates Relationship - the Relationship ID is generated by the application,
this Relationship ID is nothing but the Record ID .
Similarly, the Contact ID, Opportunities ID and Leads ID are the Record ID.
g. Every time you create a new record - a Record ID is generated.
h. There are 2 types of Record ID
i. 15-Digit Record ID - Its case sensitive
ii. 18-Digit Record ID - Its not case sensitive
i. The last 3 digits of an 18 Digit Record ID, is the checksum of the capitalization of 1st 15
Digits of Record ID
j. The first 3 characters of the Record ID - Defines the object and its pre-defined by
salesforce
For Accounts - 001
For Contacts - 003
For Leads - 00Q
For Relationships - 001
For Opportunities - 006
========================================================================
42. What is an External ID ?
a. Its a Custom Field, which you mark it uniquely while the data is coming from an external
source
b.
========================================================================
43. What is Bucket Field ?
a. A bucket field is used in reports.
b. U can apply bucket column to 3 different types of fields
i. Text
ii. Number Field
Iii. Drop-Down
c. Using bucket field, you can group the record, without using the complex formulas
d. Using a bucketing field - the user can create a custom field.
========================================================================
========================================================================
========================================================================
========================================================================
https://www.salesforceben.com/30-salesforce-developer-interview-questions-answers/
https://career.guru99.com/top-23-salesforce-interview-questions/
Schema Builder
https://subscription.packtpub.com/book/application_development/9781784394677/1/ch01lvl1sec1
1/schema-builder
https://data-flair.training/blogs/salesforce-schema-builder/
01:Can two users have the same profile? Can two profiles be assigned to the same user?
Ans:Yes 2 users can have 1profile and 2 profiles CANNOT be assigned to an user.
02:What is a sandbox org? What are the different types of sandboxes in Salesforce?
Ans: To make any changes for the exiting application we should copy all contents of the
production into sandbox and make all changes after that test thoroughly and move those changes
into production.
To create the sandbox, in production we can find one link called sandboxes. by clicking on that
link we can create the sandbox by choosing type of the sandbox.
03::What is the use of writing sharing rules? Can you use sharing rules to restrict data access?
Use sharing rules to extend sharing access to users in public groups, roles, or territories. Sharing
rules give particular users greater access by making automatic exceptions to your org-wide
sharing settings
https://focusonforce.com/analytics-and-reporting/creating-a-dynamic-dashboard-in-salesforce/
if you have a dynamic Dashboard (reporting with Running User) you can't schedule a refresh.
Instead you must manually refresh the dashboard each time
https://www.janbasktraining.com/blog/what-is-salesforce-architecture/
https://www.opencodez.com/salesforce/visualforce-mvc-architecture-on-cloud.htm
https://subscription.packtpub.com/book/big_data_and_business_intelligence/9781786463180/1/ch
01lvl1sec13/types-of-relationship-in-salesforce
09:in which scenarios you will create Junction object or Explain many to many relationship with an
example
https://subscription.packtpub.com/book/big_data_and_business_intelligence/9781786463180/1/ch
01lvl1sec13/types-of-relationship-in-salesforce
13:what is the difference between closed won and closed lost( opportunity stages)
https://www.tenfold.com/what-is/close-won-opportunities
https://www.guru99.com/cloud-computing-for-beginners.html#3
15: On which cloud your project is implemented? and explain me what all the object you are using
?
On the detail page without clicking on edit button we can edit particular field if
it is not read-only.
To enable or disable Inline editing follow the below navigation - Setup--> Customise--> User
Interface--> Enable Inline Editing
Profile deals with CRED (Create, Read, Edit and Delete) permissions over Apps, Tabs, sObjects,
Fields, Record Types, etc...
We can map only one profile for one user and without mapping the profile we cannot create the
user.
Roles
In salesforce, roles are defined so as to increase the data visibility a particular user has. The data
visibility can be increased using sharing rules or by building role hierarchy. Role hierarchy allows
the user sitting in higher level have access of records owned by users having role lower in
hierarchy. It is not mandatory that a user should have a role.
Organisation wide default sets the default access for objects, for example OWD set as private
would mean that only the owner of the record can access the record. One way to grant additional
access of these records to other users is through roles i.e users higher in role hierarchy would get
the access of records owned by users lower in hierarchy. Other way is by writing sharing rules,
wherein we can specify the logic to decide which record should be shared and with what role user.
We can specify against custom objects whether the records should be shared using role hierarchy
or not but this is default set for standard objects and cannot be changed. That is, standard object
records will always be shared according to role hierarchy. Defining role for users is not a
mandatory thing, however not defining role for a user could affect the data shown on opportunity
and other reports for that user.
Summarizing the points for role,
Profiles
Unlike role, profile is mandatory for every user in salesforce. You cannot have a user without a
profile. It is the building pillar of the entire org. Profile states the objects/field permissions and also
other permissions with in the org. It defines what a user can do within the org, it states the access
settings and user permissions. Profile controls following -
Object permissions [create, delete,read, edit permissions]
field permissions [view, edit]
Record type permission
Which Apps can be viewed
Login hours can be defined
IP address permissions
Which tabs are visible
Which page layouts can be viewed
Classes, vf pages permissions
Salesforce provides some standard profiles with different set of permissions for each, we can
create our own profiles to have permissions as per our requirement. New profile should be cloned
from existing profile.
1. Role defines what user can see depending on the hierarchy(Helps in defining data visibility)
2. Profile defines what a user can do within the org(Defines various permissions)
3. Defining profile for a user is mandatory, role is not.
21: Difference between workflow and process builder and which action we cannot do with the help
of process builder.
https://www.salesforceben.com/workflow-rules-vs-process-builder-feat-apex/
22: Have you worked on Data Loader and all the actions you have performed with the help of data
loader
https://developer.salesforce.com/docs/atlas.en-
us.dataLoader.meta/dataLoader/when_to_use_the_data_loader.htm
Useful:
https://www.salesforcetutorial.com/salesforce-data-loader/
https://www.salesforcetutorial.com/workbench-salesforce-using-workbench/
https://www.forcetalks.com/blog/how-to-use-workbench-with-salesforce/
http://www.infallibletechie.com/2014/04/purge-in-workbenchdeveloperforcecom.html
28: Which edition you are using in your project, Ex-01: Essential 02: Professional 03: Enterprise
04:Unlimited 05:Developer
29:Waht is CPQ(Configure Price Quote) and explain it
30: Basic Questions on reports and dashboards Ex: Different types of report and what all reports
we can’t use in dashboard (Detailed and Matrix).
33: What all the challenges you have faces in your project and how you managed it?