Salesforce Admin Manual
Salesforce Admin Manual
Index
Index............................................................................................................................................. 1
Objects Information............................................................................................................... 3
Big Objects..................................................................................................................................... 3
Standard Objects...........................................................................................................................5
Custom Objects............................................................................................................................. 6
External Objects............................................................................................................................ 8
Tab Information...................................................................................................................... 9
Application Information.......................................................................................................11
Fields and Relationships.......................................................................................................12
List Views............................................................................................................................... 18
Layouts In Salesforce............................................................................................................21
Page Layouts in Salesforce........................................................................................................ 21
Mini page Layouts.......................................................................................................................25
Compact Page Layout.................................................................................................................26
Search Layout.............................................................................................................................. 27
Record Types..........................................................................................................................28
Business Processes in Salesforce............................................................................................. 30
Rules in salesforce................................................................................................................ 31
Assignment Rules........................................................................................................................32
Duplicate Rules............................................................................................................................34
Matching Rule Creation..............................................................................................................36
Auto Response Rules..................................................................................................................37
Escalation Rules...........................................................................................................................38
Workflow Rules............................................................................................................................39
Validation Rules...........................................................................................................................42
Process Builder...................................................................................................................... 50
Approval Process...................................................................................................................62
Security Model.......................................................................................................................66
Profiles in Salesforce.................................................................................................................. 67
Users in the Salesforce...............................................................................................................69
Public Groups in Salesforce.......................................................................................................75
Org Level Security....................................................................................................................... 76
Object Level Security.................................................................................................................. 78
Field Level Security..................................................................................................................... 80
Record Level Security................................................................................................................. 82
Security Model Questions..........................................................................................................89
2
Objects Information
Every database has a job to store the data, and that data should be in the organized form.
Salesforce also has an organized database that stores the data in tabular form. It has rows and
columns, that table is called an “Object” in salesforce.
There are 4 types of objects in salesforce:
● Standard Object
● Custom Object
● Big Object
● External Object
Big Objects
● Triggers, Flows, Processes and the Salesforce App are unavailable for Big Objects.
● It only supports Object and Field permission.
● Big Objects supports custom salesforce Lightning and Visualforce components rather
than standard UI.
● Example of Standard Big Object: FieldHistoryArchive, it stores data as a part of the field
Audit Trail.
● Standard big objects are available out of the box and cannot be customized.
● Custom Big Objects: It can save up to 1 Billion records.
● We can not create Reports and Dashboards directly on the Big Object because of the
large amount of data.
● To create the report we need to create a Custom Object and transfer the data in the
custom object and then create a custom report type on it, in that way we can create a
report on a subset of data of Big Object.
● We can not create Tab for Big Object while creating the object and after creation.
● Initially it is only visible for System Admin.
● API Name of the Big Object is having __b as extension.
● There are no standard fields are present for Big Object
● The creation setup of the Custom big Object can be completed only after creating at least
one required custom field.
● Big Objects can not be at the child side of the M-D Relationship.
● We can do field indexing in Big Object, only required fields we can use as index fields.
(Limit 5)
● The index defines the composite primary key for a custom big object and is used for
querying and filtering the big object data.
4
Standard Objects
These are the objects which already exist in the Salesforce platform to manage the
configurations and settings of the environment. Once you log in to the salesforce platform, you
can see the available objects.
Considerations
● We can not create Standard Objects.
● Standard objects already having some custom fields.
● We can change the Tab name of the Standard Object from “Rename Tabs and Labels”
option.
● Standard objects can not be at the child side of the Master Detail relationship.
● Standard objects API name does not contain __c.
● We can not delete Standard objects.
● There is a Cascade Relationship between Account & Contact.
● We can not create Tab for Standard object.
● We can not delete Tab of Standard Object.
6
Custom Objects
How to Create Custom Object
Setup => Object Manager => Create Custom Object
● Deployment Status
○ In Development - If selected then object can only visible to System Administrator
○ Deployed - If selected then states that the object is now ready for use and then
can be visible to non admin profile users if having permission.
● Search Status - Allow Search - If selected then object records are visible after searching
them
● Add Notes and Attachments related list to default page layout - This adds Notes and
Attachment related list to default page layout.
● Launch New Custom Tab Wizard after saving this custom object - This redirects to Tab
creation for object after clicking on save.
7
External Objects
External objects are similar to custom objects, except that they map to data that’s stored outside
your Salesforce org. Each external object relies on an external data source definition to connect
with the external system’s data. Each external object definition maps to a data table on the
external system. Each of the external object’s fields maps to a table column on the external
system. External objects enable your users and the Lightning Platform to search and interact with
the external data. (Each Org can have up to 200 external objects.)
Tab Information
Tabs represent objects on the UI, by using tabs users can see and create records.
OR
Tabs are like a user interface that is used to build records for objects and to view the records in
the objects.
Types of Tabs
There are 5 Types of tabs.
● Custom Object Tab - Tabs for the Custom Object.
○ Custom Object Tab can be created while creating the object and after creating the
object.
○ For standard objects tabs are already created and we can not delete them.
○ For custom objects we can create and delete the tabs.
○ On dev org we can create max 100 tabs, on Unlimited Edition we can create 1225
tabs.
○ For one object there can only be 1 tab.
○ Once any object is having a tab we can not create another tab until and unless we
delete the old tab.
● Web Tab - Custom web tabs show any external web-based application or web page.
○ Web tab can be full page or with sidebar.
○ Web tab is just like a normal tab, when we click on that it redirects us to the web
page
● VisualForce Tab - Visualforce tabs show data from a Visualforce page. Visualforce tabs
look and function just like standard tabs.
○ First we have to create a VF Page then we can select it while creating the tab.
● Lightning Page Tab - Lightning page tabs let you add Lightning app pages to the
Salesforce mobile app and Lightning Experience navigation bars.
Visibility of Tabs
● Default On: If Default On is selected, the particular tab is displayed on the bar at the top,
where other tabs are.
● Default Off: If Default Off is selected, the user will have to click the ‘+’ icon on the bar at
the top, next to all the other tabs that are visible.
● Tab Hidden: If Tab Hidden is selected, then the tab will be hidden from the bar at the top
and the user won’t be able to access it even with the ‘+’ icon.
11
Application Information
Apps in Salesforce are a window on which we can access a set of tabs each consisting of
different types of information and functionalities. It simply consists of a name, a logo, and an
ordered set of tabs. The simplest app contains only one tab i.e the home tab and a default logo.
Types
● Salesforce Standard App
● Salesforce Custom App
Standard Fields
Standard fields are those fields which are created by the salesforce. All standard objects have the
standard fields and when we create a custom Object then Name, CreatedBy, ModifiedBy, Owner,
CreatedBy ID standard fields get created.
● We can not create Standard Fields
● We can not delete standard fields
● Standard fields do not have __c in the API name.
● Big Objects do not have standard fields
● Standard objects already have many standard fields.
Custom Fields
Custom Fields are those fields which we create as per business needs. We can create custom
fields in Standard as well as Custom Object. We can create specific data type fields.
● We can create custom fields.
● We can delete custom fields.
● Custom fields have __c in API Name.
● We can refer to custom fields in Apex, VR and other processes.
Data Types
● Auto Number:
○ Auto numbers are auto generated numbers
13
○ We can generate auto numbers for older records but only while creating the field.
By using option “Generate Auto Number for existing records”
○ If we do not use this option, then auto numbers only generate for new records
created after field creation.
○ Auto numbers are read only.
○ If anyone deletes the record then its number will not be transferred to other
record.
● Checkbox
○ Checkbox returns the TRUE or FALSE value in the backend.
○ Checked means True, Unchecked means False.
○ We can not make the checkbox Required.
○ We can set the checkbox’s default value to True or False.
● Currency
○ Currency has a max 18 char length.
○ We can set decimals in currency.
○ After adding value in field, value get append with currency symbol like 20$
○ We can mark it as required.
○ It only accepts numbers.
● Date
○ We can make it required.
○ Format: YYYY-MM-DD
○ We can either enter the date manually or we can pick from the calendar.
● Date/Time
○ We can make it required.
○ Format: YYYY-MM-DD hh:mm:ss
○ We can either enter the date manually or we can pick from the calendar.
● Email
○ We can make it Required, Unique, External ID.
○ It only accepts data which is in proper email format.
○ It fires an error when we enter wrong data.
14
● Number
○ Number only accepts the number values.
○ Max length 18 Char.
○ It can have decimals.
○ We can make it unique, external, Required.
● Lookup Relationship
○ The lookup is a loosely coupled relationship, allowing you to connect one object
to another in a one-to-many fashion.
○ One Object acts as Parent and One acts as child.
○ We can delete the Parent Record and the child will be as it is.
○ To restore those unusable reports we need to restore the original data type.
○ Error in Report: “This report no longer be edited or run. Your administrator has
disabled all reports for the custom object or its relationship has changed.
○ If any dashboard that uses the report then that also be unusable with below error:
This report can not be used as source report for this component. If a summary or
matrix report, add one or more groupings in the report. If it is tabular report with a
row limit, specify the Dashboard setting in the report.
List Views
In Salesforce we can create list views to filter out records based on any field that we have access
to. List views are used to quickly segment lists of records, they allow us to action multiple records
at the same time.
There are 2 Types of List Views:
● Standard List View
● Custom List View
How to Create
● Click on Gear Icon => New => Give Name & Visibility
19
○
● Table View
○
20
● Kanban View
○
○ In Kanban View we can do Summarised By and Group By
Note:
● Recently View is not a list view.
● We can apply filters to list views by 2 ways, by gear icon-Add list view filters or from the
Filter Icon on list view page.
21
Layouts In Salesforce
● Page Layouts
● Mini Page Layouts
● Compact Layouts
● Search Layouts
Also we can see Compact Layout when we hover the cursor on Record Name
27
Search Layout
In Lightning Experience, We can set the search results layout, or which fields appear as columns
on the search results page. In Lightning Experience,with Search Layouts we can customize which
fields appear in the search results for global search, lookup search, and search results filters. We
aren’t required to separately update Lookup Dialogs or Search Filter Fields.
Record Types
Salesforce record types are ways to group records within a specific object. These are typically
focused on what will make the most sense to the end user. Below are examples of when record
types may be needed:
● Accounts types that different groups need to access – customer accounts, partner
accounts, etc.
● Opportunity types from different revenue streams – online, retail, etc.
● Campaigns types based on lead source – trade show, website, etc.
Record types are used to:
● Capture different information for each type (i.e., fields or picklist values).
● Allow users access to only the records that are relevant for their jobs.
Rules in salesforce
● Validation Rules
● Duplicate Rules
● Workflow Rules
● Assignment Rules
● Auto Response Rules
● Escalation Rules
● Entitlement Rules
Limitations
● Total rules across objects
○ (Applies to any combination of workflow, assignment, auto-response, and
escalation rules, active and inactive.) = 2000
● Active rules per object
○ (Applies to any combination of active workflow, assignment, auto-response, and
escalation rules, as well as record change processes.) = 50
● Total rules per object
○ (Applies to any combination of workflow, assignment, auto-response, and
escalation rules, active and inactive.) = 500
● Entries per rule = 3000
● Formula criteria entries per rule = 300
● Filter criteria per rule entry = 25
● Actions allowed per rule = 200
Entitlement Rules
● The entitlement process is used to deliver support in a timely manner and indicate the
type and level of support customers entitled to. It Provides the best solution for customer
support and offers the correct support to customers.
● Entitlement processes are timelines that include all of the steps (or milestones) that your
support team must complete to resolve cases.
32
Assignment Rules
● Definition: Assignment rules in salesforce are used to automatically assign lead or Case
to owner (User Or Queue). Assignment rule is used to automate owner assignment on
Case and Lead based on conditions on Case or Lead.
● Assignment rules automate your organization’s lead generation and support processes.
Use lead assignment rules to specify how leads are assigned to users or queues. Use
case assignment rules to determine how cases are assigned to users or put into queues.
● Lead assignment rules can assign leads regardless of whether leads are created
manually, are generated from Web-to-Lead forms, or are imported using the Data Import
Wizard.
● Case assignment rules can assign cases regardless of how cases are created. Cases can
be created manually or automatically using Web-to-Case, Email-to-Case, On-Demand
Email-to-Case, the Self-Service portal, the Customer Portal, Outlook, or Lotus Notes.
● Organizations typically use one rule for each overall purpose. For example, use one lead
assignment rule for importing leads and use a different lead assignment rule for
web-generated leads. Or use one case assignment rule for standard use and one case
assignment rule for holiday use. For each rule type, only one rule can be in effect at any
time.
● Each rule consists of multiple rule entries that specify exactly how the leads or cases are
assigned. For example, your standard case assignment rule can have two entries: cases
with “Type equals Gold” are assigned to the “Gold Service” queue, and cases with “Type
equals Silver” are assigned to the “Silver Service” queue.
Note: While creating Lead & Case there is a checkbox “Assign using active assignment rule”, if we
check that, then only assignment rule assign owner.
33
Duplicate Rules
● Definition: A duplicate rule defines what happens when a user views a record with
duplicates or starts creating a duplicate record. Salesforce provides standard duplicate
rules for business and person accounts, contacts, and leads. You can also create
duplicate rules.
Note: For Edit record, if we are editing the Field added for matching criteria, then duplicate rule
works. If we are editing other field along with it then the duplicate rule does not works.
37
Escalation Rules
● Definition: Case escalation rules in Salesforce are used to reassign and optionally notify
individuals when a case is not closed within a specified time period. Generic Use cases
for escalation rule. If a Tier 1 agent is unable to close the case in a specific amount of time
the case will automatically get assign to Tier 2 Team.
Note: If case status is closed then Escalation Rule will not work. & Cases fit under escalation can
be monitored in Environment => Monitor => Case Escalations.
39
Workflow Rules
Definition: Workflow in Salesforce is basically a container or business logic engine which
automates certain actions based on particular criteria. If the criteria are met, the actions get
executed. When they are not met, records will get saved but no action will get executed.
Things to Remember
● Workflow Rule is related to the Automation Process.
● Workflow Rule is always used to Automate the things.
● WFR never fires an error.
● It works after saving the record.
● For each workflow rule:
○ You can only have 10-time triggers for every workflow rule
○ It is not possible to exceed 40 immediate actions
○ You only get access to 40 time-dependent actions for each time trigger
● For both time-dependent and immediate actions in workflow rule:
○ You only get ten email alerts
○ The number of tasks is restricted to 10
○ You can only have ten field updates
○ The number of outbound messages is limited to 10
● Workflow time trigger limit for different editions (hourly):
○ Professional: 250
○ Enterprise: 500
○ Developer: 50
○ Unlimited and Professional: 1000
● Daily email limit for Workflow:
○ With Standard Salesforce license: 1000
○ For every organization: 200,000
Examples
For Entry Criteria Created
● Selected Object == Opportunity
● Entry Criteria == Created
● Condition == Country == India
● Action == Opp Name == Prasad
● Steps
○ I'm creating a new record with country India = Yes it will update Opp name with
prasad
○ I have edited that record and change country to England = No, it will not update
(opp name remain as it is)
○ I have updated the record and changed country to India = No, as this is old record
update system will not update anything
41
For Entry criteria Created, and any time it's edited to subsequently meet criteria
● Selected Object == Opportunity
● Entry Criteria == Created and Every time it's edited
● Condition == Country == India or USA
● Action == Opp Name == Prasad
● Steps
○ I have created a record with Country England = No,as criteria does not match then
no updates, user need to give manual name
○ I have edited that record and change country to USA = Yes, it will update Opp
name with prasad with prasad
○ I have edited that record and change country to India and with the name Shubham
= It will not update record automatically but as we are giving name manually so it
will save Shubham as name.
Note: Workflow rules are not in use now, Salesforce deprecated the WFRs. Old created wfrs are
in use, just we can not create new ones.
42
Validation Rules
Definition: Validation rules verify that the data a user enters in a record meets the standards you
specify before the user can save the record. A validation rule can contain a formula or expression
that evaluates the data in one or more fields and returns a value of “True” or “False".
Things to Remember
● Validation rules are a bunch of functions.
● Sometimes we can create bad data, to stop that we can create a bunch of functions to
throw the errors.
● We can make any field required by using Validation Rules.
● Validation Rules fires before saving the Record.
● We can make any field Read-Only by using Validation Rules.
● We can not delete any record by using the validation rule.
● We can fire VR only for new records by using the “ISNEW()” function.
● We can fire VR only for old record updates by using the “ISCHANGED()” function.
● To use a single selectable picklist inside VR then we have to use the “ISPICKVAL(Name
of Picklist, Value)” function.
● We can make the single selectable picklist required by using following
○ ISPICKVAL (Country__c, ‘ ‘)
■ Country__c considered as a single selectable picklist.
■ ‘ ‘ indicates blank value
■ It can be read as “Is Country Picklist Blank?”
● If Yes then it will throw the validation.
● We can make Multi Selectable Picklist required by using following
○ ISBLANK (District__c)
■ District__c considered as a Multi Select Picklist
■ It can be read as “Is District Picklist Blank?”
● If Yes then it will throw the validation.
● We can show Error at “Top of the Page” or at “Below Specific Field”.
● If we are showing an error below any field and we hide that field from Page Layout then
the error location changes to First Field which comes alphabetically first.
● We can refer to the Parent Object field from the Child object VR.
● We can not refer to the Child object field from the Parent Object VR.
● We can not delete the field which is referred to in any VR.
● When one validation rule fails then it will check other validations also and throw all
validation errors at the same time.
43
Examples
1. Implement a validation rule in which if a country picklist has value as India, then only user can
enter value in currency.
Ans: AND
(
NOT (ISPICKVAL (Country__c, ‘India’)),
NOT (ISBLANK (Currency__c))
)
2. Implement a validation rule that if an account has the “opportunity create permission”
checkbox is true, then only the user can create the opportunity. Otherwise the user should get an
error “You do not have permission to create an opportunity”.
Ans: AND
(
Opportunity.Account.Opportunity_create_permission__c = False,
ISNEW ()
)
● System Will check like
○ Both Conditions are in AND so both must be TRUE
○ Second line will check whether the checkbox on the account is false.
○ Third line will check whether the Opportunity record is newly created.
5. Create a validation rule in which. Create a checkbox on Account. When a user tries to edit a
checkbox, if the user has a profile system admin then only allows the user to edit that checkbox.
Checkbox Name = Active.
Ans: AND
(
User.Profile != System Admin,
ISCHANGED ( Active__c )
)
46
6. Create a validation rule in which make a field read only. Field must be the checkbox. Field
Name = Active.
Ans: OR
(
AND
(
ISNEW (),
Active__c = False
),
AND
(
NOT ( ISNEW() ),
ISCHANGED (Active__c )
)
)
7. Create a validation rule in which the user should have edit access at time of creation of record
& after creation field should be read only.
Field Data Type = Date
Field API Name = Contract_Date__c
Ans: AND
(
NOT( ISNEW() ),
ISCHANGED (Contract_Date__c)
)
47
8. On the contract object, make the phone field mandatory when email contains ‘test@gmail.com’,
this validation should only fire on existing data.
Ans: AND
(
CONTAINS (Email, ‘test@gmail.com’),
ISBLANK (Phone),
NOT ( ISNEW() )
)
9. Create a field on user object 1. Segmentation__c, 2. Data Type == Picklist, 3. Values == Europe,
Asia, USA
Create a field on Opportunity 1. Sales_Segment__c, 2. Data Type == Picklist, 3. Values == SMB,
Mid Market
When the value SMB & Owner (User) has segmentation Asia then fire validation.
Ans: AND
(
ISPICKVAL ( Sales_segment__c, ‘SMB’ ),
ISPICKVAL ( Opp.Owner.segmentation__c, ‘Asia’ )
)
10. Create a validation rule where, If someone is going to Closed Won the opportunity then
previous stage must be “Negotiation”
Ans: AND
(
ISPICKVAL ( Stage, ‘Closed Won’),
NOT (ISPICKVAL (PriorValue (Stage), ‘Negotiation’ )),
ISCHANGED (Stage)
)
48
Process Builder
Definition: Process builder is used to automate more complex business processes just by a few
point and click actions. It provides a user – friendly representation for building a process in
Salesforce.
Considerations
● Execution Sequence
○ Validation rules
○ Assignment rules
○ Auto-response rules
○ Workflow rules and processes (and their immediate actions)
○ Escalation rules
● Processes Evaluate Record Changes When:
○ A record is saved or created. Processes that are created after records are saved
don’t evaluate those records retroactively.
○ A standard object in a master-detail relationship is reparented.
○ Users synchronize records that were changed while using Connect Offline.
○ Leads are converted, if the lead setting Require Validation for Converted Leads is
enabled.
○ Another process, workflow rule, or flow updates the record in the same save
operation, if the process is configured to reevaluate records.
○ Processes can reevaluate records up to five times in one save operation. In a
batch update, processes reevaluate only changed records.
● Processes Don’t Evaluate Record Changes When:
○ Campaign statistic fields, such as individual campaign statistics or campaign
hierarchy statistics, are updated.
○ Picklist values are mass replaced.
○ Address fields are mass updated.
○ Divisions are mass updated.
○ Territory assignments of accounts and opportunities are modified.
○ Self-Service Portal, Customer Portal, or partner portal users are deactivated.
○ State and country/territory data is converted with the Convert tool.
○ Values for state and country/territory picklists are modified using AddressSettings
in the Metadata API.
51
Entry Criteria
● Creation: When we create a Process Builder we have to choose the Entry criteria for it:
Note:
● We can select object at time on new PB creation or change the object before Activating it
(The very first version only).
● After Activating we can not make any changes into it.
● If we want to do any changes in Start The Process or at Advance then we need to clone
the PB.
● After cloning and if PB’s new version is not activated then also we can not change the
object.
55
Evaluation Criteria
Here in the evaluation criterias we can set the Criterias on the basis of which PB invokes
● Criteria Name
○ We can give the name to criteria (Name should be meaningful according to
business)
● Criteria for Executing Actions
○ Conditions are met - We can set the any field values and it these values met then
PB start working
○ Formula evaluates to true - We can set the custom formula, if it evaluates to true
then PB starts working.
○ No criteria—just execute the actions! - PB Executes without any condition.
● Set Condition
○ This box is visible only when we select “Conditions are met”.
○ If we select formula evaluates to true then a formula editor appears.
○ If we select no conditions then everything below criteria selection disappears.
● Conditions (Logics)
○ AND, OR, Custom
● Advance
○ Do you want to execute the actions only when specified changes are made to the
record?
■ If we select it, then PB works when we update the mentioned fields in
criteria or formula and meet the condition.
56
Output: When we create any record which has Account Type = Prospect then after saving it will
update Active = True.
57
Output: When we create the Contact Record with lead Source as Web then the system sends the
Email Alert, which can appear in Spam of Email.
58
Output: When a user creates an Account with Type picklist then the system will create an
opportunity under the account.
59
Output: When a user creates an account with Annual Revenue, then go to Related List => Chatter.
There we can see the chatter message.
When we select Post To: User then a chatter message will appear in the chatter object.
60
Output: Whenever Account description gets changed then related opportunities will have
updated description on them.
61
Output: Whenever a user created opp under an account, it will populate opp created by id on acc
description.
62
Approval Process
Considerations
● Associated Object
○ If the approval object is a detail object in a master-detail relationship, Owner isn’t
available for approval page layouts or approval post templates.
● Approval Criteria
○ In approval criteria—either the entry criteria or step criteria—don’t reference
expressions that resolve to random values. That way, if the criteria must be
evaluated again, the record is evaluated the same every time.
● Compatibility with Other Features
○ Flows can delete records that are pending approval.
○ Design automated actions so that you can use them for both workflow rules and
approval processes.
● Field Update Actions in Approvals
○ An approval process can specify a field update action that reevaluates workflow
rules for the updated object. If, however, the reevaluated workflow rules include a
cross-object field update, those cross-object field updates are ignored.
○ Field updates that are executed as approval actions don’t trigger workflow rules or
entitlement processes.
● Anticipate Errors
○ Consider reviewing the content on approvals errors. That way, you can anticipate
common issues and configure your approval process so that the error is less likely.
● Approvals in Unlocked Packages
○ Unlocked packages can include Approvals with steps that reference related users
or queues as approvers; users aren’t supported.
○ Queues and related user fields (lookup fields) referenced by the approval steps
must be included in the unlocked package.
○ An Approval Process can only be included in unlocked packages that don’t have a
specified namespace.
63
Structure
● Aim : To approve or reject the record on the basis of some criteria
● Only two results : Approve or Reject
● Steps
○ Entry Criteria
■ Initial Criteria to enter in the process
■ Initial Submission Action (When record send for approval)
○ Record Lock
■ Email, Field Update, Outbound Message
○ Approval Steps
■ Decides criteria for sending record to diff diff approvers
○ Final Approval Action
■ Record Lock / Unlock
■ Email, Field Update, Outbound Message
○ Final Rejection Action
■ Record Lock / Unlock
■ Email, Field Update, Outbound Message
○ Recall Action
■ Record Lock / Unlock
■ Email, Field Update, Outbound Message
65
Limits
66
Security Model
Definition: Salesforce provides a detailed and versatile data protection model to safeguard data
at different levels to ensure and provide a security framework that fulfills numerous exceptional
proper business instances. It furthermore includes salesforce security tools to access the security
database on the business necessities.
Profiles in Salesforce
A profile is a collection of settings and permissions that determine which data and features in the
platform users have access to.
It is like a template, it means whenever we want to create a new profile we have to choose a
profile that is already given by Salesforce and then we can customize them according to our
requirements.
We must choose a profile while creating a new profile so we don’t have to set all the permissions
and settings from scratch.
Settings determine what users can see for example apps, tabs, fields, and record types whereas
Permission determines what users can do for example create or edit records of a certain type, run
reports, and customize the app.
Note:
● Object permissions on the Standard profile cannot be edited. So to overcome this, it is
good to make a new profile by copying/cloning standard profiles and then customize the
copies to fit the needs of the organization. The profile functionality in an organization
depends on the user license type.
● Every profile should have at least one visible app.
● If an app is visible, its tab won’t show up unless a profile has permission to view the
associated objects.
● A profile can be assigned to many users but the user can be assigned to only one profile
at a time.
68
Usernames
● Usernames must be unique across all Salesforce orgs, including trial and Sandbox orgs.
● The username must be in the format of an email address, for example,
jane@salesforce.com.
● The email used in your username need not function or match the email address used for
the account.
● You can have the same email address associated with your account across multiple orgs.
For example, create unique usernames like jane@company.sandbox and
jane@trialorg.company.com, for different accounts that are associated with the same
email address.
● Keep in mind that Salesforce Customer Support can’t change usernames or deactivate
users from an org.
● If you get a Duplicate Username error, check if the username is already in use in your
production, trial, or Sandbox orgs.
● Deactivate or change the username for the user record, then create your account with
your desired username in your production org.
● If you’re unable to change or deactivate a username, contact your Salesforce admin for
help.
● If you’re unable to locate the org where the username is already in use, try a different
username to create your account.
Personal information
● Users can change their personal information after they log in.
User Sharing
● If the organization-wide default for the user object is Private, users must have Read or
Write access to the target user to access that user’s information.
70
Domain Names
● You can restrict the domain names of users’ email addresses to a list of specific domains.
Any attempt to set an email address with another domain results in an error message. To
enable this functionality for your organization, contact Salesforce.
Unlock Users
● Users can be locked out of their org when they enter incorrect login credentials too many
times. Unlock users to restore their access.
● From Setup, enter Users in the Quick Find box, then select Users.
● Select the locked user.
● You can view the number of failed login attempts for the user’s account in the Failed Login
Attempts field. When the maximum number of failed login attempts is reached, the
counter resets and the user’s account is locked. If there’s a successful login before the
maximum number of failed login attempts is reached, the counter resets and the user’s
account remains unlocked.
● Click Unlock.
● This button appears only when a user is locked out.
71
Delete Users
● While you can’t completely delete a user, you can deactivate a user’s account so they
can’t log in to Salesforce.
● Salesforce lets you deactivate users, but not delete them outright. A user can own
accounts, leads, and groups, and can be on multiple teams.
● Removing a user from Salesforce affects many processes in the org. After departure from
the org, you obviously don’t want the user to retain access to their account.
● However, merely deleting a user can result in orphaned records and the loss of critical
business information.
● For these reasons, deactivating rather than deleting the user is the appropriate action to
take.
● Deactivation removes the user’s login access, but it preserves all historical activity and
records, making it easy to transfer ownership to other users.
● For situations where changing ownership to other uses must be done before deactivation,
freezing the user prevents login to the org and access to the user’s accounts.
Deactivate Users
To deactivate a user’s account so they can no longer log into Salesforce, complete these steps.
● From Setup, in the Quick Find box, enter Users, then select Users.
● Click Edit next to a user’s name.
● Deselect the Active checkbox, and then click Save.
Considerations for Deactivating an User
● The user remains in the list of users, but is shown as not active.
● The user still appears as a member of public groups they’ve been a part of and any
default accounts and sales teams.
● Deactivating the user doesn’t affect the records they owned until ownership is transferred
to others.
● All the user’s overrides remain, but they’re frozen.
● In Chatter, the user’s profile remains, but it shows they’re inactive. However, the user
remains the owner of any Chatter group they owned until an admin reassigns ownership.
● You’re prevented from deactivating a user if the user is the:
○ default owner of leads
○ default or automated case owner
○ default lead creator or owner
○ default workflow user
○ recipient of a workflow email alert
○ a user selected in a custom hierarchy field
○ a customer portal administrator.
72
● In these cases you can prevent the user from accessing their accounts by freezing them.
Freezing a user is done from the user’s User Record. Later, after updating ownership and
other processes, you can deactivate the user’s account.
● Finally, if the deactivated user was an approver, you must remove the user from all
approval processes, or reassign their approval responsibilities to other users.
● Situations preventing deactivation
○ Some situations can prevent you from deactivating a user. In these cases, you
must freeze the user’s account first to prevent logins while you reassign
ownership, memberships, and so on, as needed. Then you can deactivate later.
● User licenses and billing
○ A deactivated user doesn’t count against your organization’s available user
licenses. However, deactivating a user doesn’t reduce the number of licenses for
which your organization is billed. To change your billing, you must change your
organization’s license count.
● Users in custom hierarchy fields
○ You can’t deactivate a user that’s selected in a custom hierarchy field even if you
delete the field. To deactivate a user in a custom hierarchy field, delete and
permanently erase the field first.
● Process Builder
○ Processes can't update records that are owned by inactive users. When you
deactivate a user, also transfer that user's records to an active user to avoid failed
processes.
● Workflow email alert recipients
○ You can’t deactivate a user that’s assigned as the sole recipient of a workflow
email alert.
● Customer Portal Administrator users
○ You can't deactivate a user that’s selected as a Customer Portal Administrator.
● Record access
○ Deactivated users lose access to any records that were manually shared directly
with them, or implicitly shared with them as team members. Users higher in the
role hierarchy relative to the deactivated users also lose access to those records.
However, you can still transfer their data to other users and view their names on
the Users page.
● Chatter
○ If you deactivate users in an organization where Chatter is enabled, they’re
removed from the Following and Followers lists. If you reactivate the users, the
subscription information in the Following and Followers lists is restored.
○ If you deactivate multiple users, subscription information isn’t restored for users
that follow each other. For example, user A follows user B and user B follows user
A. If you deactivate users A and B, their subscriptions to each other are deleted
73
from Following and Followers lists. If user A and user B are then reactivated, their
subscriptions to each other aren’t restored.
● Salesforce Files
○ Files owned by a deactivated user aren’t deleted. The deactivated user is the file
owner until an admin reassigns the files to an active user. Files shared in a content
library can be edited by other library members with author or delete permissions.
Sharing rules remain active until an admin modifies them.
● Created By fields
○ Inactive users can be listed in Created By fields even when they’re no longer
active in an organization. Some system operations create records and toggle
preferences, acting as an arbitrary administrator user to complete the task. This
user can be active or inactive.
● Accounts and opportunities owned by deactivated users
○ You can create and edit accounts, opportunities, and custom object records that
are owned by inactive users. For example, you can edit the Account Name field on
an opportunity record that’s owned by an inactive user. This feature requires
administrator setup.
● Enterprise Territory Management
○ Deactivated users are no longer assigned to territories and are removed from the
territories they were assigned to.
● Opportunity and account teams
○ Deactivated users are removed from the default opportunity and account teams of
other users. The deactivated users’ default opportunity and account teams aren’t
removed.
● Account teams
○ When a user on an account team who has Read/Write access (Account Access,
Contact Access, Opportunity Access, and Case Access) is deactivated and then
reactivated, access defaults to Read Only.
● Opportunity teams
○ If you deactivate users in an orgwhere opportunity splitting is enabled, they aren’t
removed from any opportunity teams where they’re assigned a split percentage.
To remove a user from an opportunity team, first reassign the split percentage.
● Delegated external user administrators
○ When a delegated external user admin deactivates a portal user, the admin can’t
remove the portal user from teams that user is a member of.
● CRM Analytics
○ When you deactivate a user who scheduled a dataflow, the dataflow schedule is
deleted and the dataflow is unscheduled.
74
Queues In Salesforce
Definition: Salesforce queues are lists of records that have no owner. The records that are not
assigned to anyone are added to a queue, and any queue member can take ownership of those
records. One with queue authority can go through the records in the queue and take
responsibility for the ones they wish.
● Once a new record is added to the queue, all queue members receive an email. The
email for queue members can be set from the Salesforce queue email template. The
records will remain in the queue itself until a queue member picks them up.
● Queues can assign records to teams by prioritizing the task.
● Queues are mostly used for leads and sales.
● The sales and support team has a lot of leads and issues to resolve in their work.
● The records stay in a queue until someone owns them. A queue helps an organization’s
employees as well as customers. Because of a queue, the employees will not be
overworked, and all customer concerns will be dealt with promptly. This will also help to
make sure that no record is left behind.
76
Password Policies
How to Apply Password Policies
There are 2 ways to apply org level security
● From Setup : Setup => Security => Password Policies
● From Profiles : Setup => Profile => Open Any Profile => Password Policies
What is the diff between applying Password Policies from Setup & Profiles
● If we apply Password policies from setup then it is applicable to all active users present in
the org.
● If we apply Password Policies from Profiles then it is applicable to that particular profile
users only.
IP Ranges
How to Apply IP Ranges
There are 2 ways to apply IP Ranges
● From Setup : Setup => Security => Network Access
● From Profiles : Setup => Profile => Open Any Profile => Login IP Ranges
Session Settings
How to Apply Session Settings
There are 2 ways to apply Session Settings
● From Setup : Setup => Security => Session Setting
● From Profiles : Setup => Profile => Open Any Profile => Session Setting
Login Hours
How to Apply Login Hours
We can apply login Hours from Profile only
● From Profiles : Setup => Profile => Open Any Profile => Login Hours
Things to Remember
● We can Give obj level security through Profiles and Permission sets.
● We can give obj level security to Standard obj and Custom obj.
● We can give Read, Create, Edit, Delete, View All & Modify All access to profiles.
● Permission sets are just add ons to security provided.
● We can not remove already given security through Permission Sets.
Permission Sets
● Permission sets are used to provide extra access like if we have Create access through
profile for an obj then through permission sets we can give Extra access like delete.
● But we can not downgrade access through it.
Things to Remember
● Is use to show or hide the field.
● It has two levels of access i.e., Edit & Read.
● If given edit access then the user can enter data in the field while creating records or can
change value for old records.
● Read only : This defines that this field is only for read purposes.
● To hide any field we need to remove Edit & Read access.
Observations
Object Level Security Field Level Security Output
Read Read & Edit Record & field both are Read
Only.
Edit, Read Read & Edit Users can only edit old
records & That field is
editable.
Create Read & Edit Can not edit record and Field
value, but can create new
record and enter value in field
Create, Edit Read & Edit Can create new & Edit old
records, field is editable fr
new creation as well as old
record edit.
Types of OWD
● Public OWDs
○ With public OWDs, all users can access the records they do not own. Public OWDs
provide the most open access and are suitable only if you want to share all the
data with everyone in your organization.
● Private OWDs
○ Private OWDs limit access to records to only the record owner and users higher in
the role. This is the most restrictive OWD, and it provides maximum data security.
Private OWDs are suitable when you want to guard sensitive data closely.
Example
Observations
84
Create, Edit, Read Private Can only see his records &
also can create new and edit
old once
Create, Read Public Read Only Can see all users records &
Can create new records but
can not edit own records and
others too.
Edit, Read Public Read Only Can see all users records &
can see, edit own records,
can only see others but can't
create new
Create, Edit, Read Public Read Only Can see, edit, create new
records, but others users
records only he can read
them
Create, Read Public Read / Write Can see all users record and
own records as read only but
can create new
Edit, Read Public Read / Write Can see and edit all users
record but can not create new
records
Create, Edit, Read Public Read / Write Can see and edit all users
record but can also create
new records
85
Role Hierarchy
Definition: Role hierarchy works together with sharing settings to determine the levels of access
users have to your Salesforce data. In most cases, the Salesforce hierarchical roles allow
employees access to data of all the users directly below them in the hierarchy.
Things to Remember
● Role Hierarchies can be used to extend the record access automatically so that a
Manager will always have access to the same data as his/her employees regardless of the
org-wide default settings.
● Role hierarchies don’t have to match your org chart exactly. Instead, each role in the
hierarchy should just represent a level of data access that a user or group of users needs.
● Depending on the organization’s sharing settings, roles can control the level of visibility
that users have into the organization’s data. Users at any given role level can view, edit,
and report on all data owned by or shared with users below them in the role hierarchy
unless the organization’s sharing model for an object specifies otherwise.
Note:
● “Grant Access Using Hierarchies” option is enabled for all objects and can only be
changed for custom objects.
● If the “Grant Access Using Hierarchies” option is disabled for a custom object then only
the record owner and users granted access by the org-wide defaults can access the
object’s records.
● However users such as with the “View All” and “Modify All” object permissions and the
“View All Data” and “Modify All Data” system permissions can still access records they do
not own.
Sharing Rules
Definition: Sharing rules in Salesforce are used to create automatic exceptions to the
Organization-Wide Default settings for the users who do not own the record.
They should be applied to the objects whose org-wide defaults are set to Public Read-only or
Private because sharing rules can only extend the access, they cannot restrict the access
provided by Organization-wide defaults. We can not share records to specific users by using the
sharing rule.
Things to Remember
● Share which records?
○ This identifies the records that need to be shared. They can be categorized based
on the owner of the records or the criteria that the records met.
● With whom do the records need to be shared?
○ Records can be shared with public groups, roles, and roles & subordinates.
● What kind of access should be provided for these records?
○ The users with whom the records are shared should have Read-Only or
Read/Write access is decided by this question.
Note:
● As they cannot restrict access this is the reason it gives Read-Only and Read/Write as
access parameters in sharing rules.
● They work best when they are defined for a particular group of users that can be
determined or predicted in advance rather than a set of users that frequently changes.
Limits
A general sharing rules limit that counts for all sharing rules, including criteria-based. The default
limit is 300 and can be increased to a maximum of 500 through a Support case.
87
Manual Sharing
Definition: Manual Sharing is only available on individual records, it is not available for all records
of a certain object. Only applicable on records that have Private or Public Read Only access in
OWD. When setting Automatic and Manual Sharing users and admins should define if the security
should be extended to related records.
Things to Remember
● Sometimes, granting access to one record includes access to all its associated records.
For example, if you grant another user access to an account, the user automatically has
access to all the opportunities and cases associated with that account.
● To grant access to a record, you must be one of the following users.
○ The record owner
○ A user in a role above the owner in the hierarchy (if your organization’s sharing
settings control access through hierarchies)
○ Any user granted Full Access to the record
○ An administrator
● If a user transfers ownership of a record, Salesforce deletes any manual shares created
by the original record owner, which can cause users to lose access. When account
ownership is transferred, manual shares created by the original account owner on child
records, such as opportunities and cases, are also deleted.
● Apex-managed shares aren’t editable.
● Admins can’t modify the share access of record owners.
● Personal groups aren’t available in Lightning Experience.
● When navigating through a Sharing Hierarchy table, JAWS and NVDA screen readers
don’t announce that there’s a link inside of a table cell, and they don’t provide a keyboard
shortcut to open the link. Use another form of input or assistive technology instead.
● With more than 2,000 users, roles, and groups, if your query doesn’t match any items in a
particular category, that category doesn’t show up in the Search dropdown menu. For
example, if none of your group names contain the string CEO, after searching for CEO, the
Groups option no longer appears in the dropdown. If you enter a new search term, all
categories are still searched even if they don’t appear in the list. You can repopulate the
dropdown by clearing your search terms and pressing Find.
● You can't grant access to unauthenticated guest users with manual sharing.
88
● In Lightning Experience, both sharing and the Sharing Hierarchy action are available for
custom objects and these standard objects.
○ Account
○ Action Plan
○ Action Plan Template
○ Appointment Invitation
○ Appointment Bundle Configuration
○ Appointment Bundle Policy Service Territories
○ Asset
○ Campaign
○ Case
○ Contact
○ Engagement Interaction
○ Expense
○ Expense Report
○ Job Profile
○ Lead
○ Maintenance Plan
○ Maintenance Work Rule
○ Opportunity
○ Product Item
○ Product Request
○ Product Service Campaign
○ Product Transfer
○ Recordset Filter Criteria
○ Return Order
○ Serialized Product
○ Service Appointment
○ Service Contract
○ Service Crew
○ Service Resource
○ Service Territory
○ Shift
○ Shift Pattern
○ Survey
○ Survey Invitation
○ Time Sheet
○ Travel Mode
○ Video Call
○ Warranty Term
89
Q. What is the use of writing sharing rules? Can you use sharing rules to restrict data access?
Ans: Sharing rules are written to give edit access (public read and write) or public read only
access to certain individuals in Salesforce org. A classic example is when:- only your managers or
superiors need to be given extra credentials to your records in objects as compared to your
peers.
By default, all users in your organization will have organization-wide-default sharing settings of
eitherPublic Read Only or Private. To give access to more records, which users do not own, we
write sharing rules. Example: Sharing rules are used to extend sharing access to users in public
groups or roles. Hence, sharing rules are not as strict as organization-wide default settings. They
allow greater access for those users. As far as the second part of the question is concerned, the
answer is no. We cannot use sharing rules to restrict data access. It is only used for allowing
greater access to records.
Q. What is OWD?
Ans: It specifies the default level of access of records.
● Org-wide sharing setting lock down the data to the most restrictive level.
● Here you have three access level:
○ Private
○ Public Read-Only
○ Public Read/Write
● You can use other Record Level security and sharing tools to open up the sharing of records.
Q. What is Grant Access Using Hierarchies?
Ans: This feature controls whether the user who is above in the role hierarchy can access the
records of subordinates or not.
● It is checked by default for all standard object.
● We can control it for custom objects.
Q. Object does not have EDIT permission but OWD is Public Read/Write?
Ans: User won’t be able to edit the record.
Report Folder
● Every report is stored in the folder.
● Report folder determines how one can access reports to View, Edit or Manage.
● Report Folders can be public, Hidden or Shared.
● We can control access to the contents of the folder based on Roles, Permissions, Public
Groups, Territories, and License Type.
Dashboard
What is a Dashboard?
● Dashboard is visual Representation of Reports.
● Source of Dashboard is Report.
● You can place one report in multiple Dashboards components on a single dashboard.
● Having Multiple Reports on a single dashboard page makes it a powerful Visual Display
tool.
Dashboard Folder
● Like reports, dashboards are also stored in the folder.
● Dashboard folders can control who has access to its content.
● If one has access to the folder then only one can access its dashboards.
● However, to view the dashboard components, one needs access to underlying reports as
well.
98
● Step 3
○ In step 3 we can review and edit fields which are available to record type by
clicking on edit layout.
Report Formats or Types of Reports (Using Salesforce Lightning)
● Tabular Reports
○ Tabular Reports are simple Table Like structured reports.
○ We can not add charts for Tabular Report.
● Summary Report
○ If we Group Tabular Report by Rows then it is called a Summary Report.
○ We can add charts for Summary Report.
● Matrix Reports
○ If we Group Tabular Reports by Rows and Columns then it is called a Matrix
Report.
○ We can add charts for the Matrix Report.
● To add Reports to the dashboard, go to dashboard and select Report first then we can
create a dashboard.
100
Things to Remember
● Global actions live on a special layout of their own, known as the global publisher layout.
The layout isn’t associated with an object, and it populates the global actions menu in
Lightning Experience. Users can access the global actions menu by clicking Global
Actions menu icon in the Salesforce header.
● If you delete an action, the action is removed from all layouts that it’s assigned to.
● Actions to create records for an object that is the detail object in a master-detail
relationship must be object-specific, not global.
● Supported Objects for Create Actions
○ Account
○ Asset
○ Badge
○ Campaign
○ Case
○ Contact
○ Contract
○ Custom objects
○ Event (without invitees)
○ Goal
○ Group
○ Knowledge object
○ Lead
○ Note
○ Opportunity
○ Orders
○ Person Account
○ Question
○ Reward
○ Task
○ Work Order
101
● If you create an action on a detail object in a master-detail relationship, the action’s target
object can’t be a different detail object of the same master.
○ For example, master object A has two detail objects, B and C. You can create
actions on object A with B or C as the target object. However, when creating an
action on object B, the target object can’t be object C because B and C have the
same master. To create an action on B with C as the target, you can do one of the
following:
■ Change the relationship between B and C to master-detail so that A is the
master of B, and B is the master of C.
■ Change the relationship between C and A to a lookup relationship. A is still
the master of B with this option, so you can’t create a quick action on B
with a target object of A.
Q. Is there any special permission available to edit read only fields. Please explain.
Ans: Yes. There is a system permission named ‘Edit Read Only Fields’ which allows to edit read
only field values. For System Administrator profile, this is enabled by default.
Q. What are the differences between Object-specific action and global actions?
Ans: Both types can create records, but only object-specific actions can update records.
Object-specific create actions create records that are automatically associated with the
current record. A record created by a global create action has no relationship with other
Records.
Q. Mention one impact point to check before deleting a role from the org.
Ans: Before deleting a role, we should check whether the role has been used in any sharing
rule. If the role is deleted, the sharing rule is also deleted.
Q. Let’s say I create two accounts a1 and a2. Now I make a2 as the parent of a1. Now what will
happen if I try to make a1 parent of a2.
Ans: The error ‘A parent account can’t be the child of an account it’s already a parent of’ will be
shown.
Q. How do you pass the current record id to a screen flow? Also is it possible to send the
entire record?
Ans: In order to pass current record Id, we need to declare a variable of name ‘recordId’ of type
text and select the option ‘Available for Input’. To pass the entire record, we can create a variable
of name ‘recordId’ of type Record and select the object type as that particular SObject.
104
Q. Suppose there is a custom field which has a default value but not added to the page layout.
Now, if you clone a record from the UI, what would be the value of the field in the new record?
Ans: The value would be the default value set at the field level, not the value which was
populated in the previous record.
Q. How do you convert 15 digit record Id to 18 digit Id in formula and validation rule?
Ans: Using CASESAFEID() function.
Q. You have created a custom object. While creating a report on the object, you are not
getting the option to select the object in the report builder. What could be the issue?
Ans: Check if the Allow Reports checkbox is enabled in the object detail page.
Q. How can we enable email approval responses? Mention a few response keywords which
will approve/reject the request.
Ans: From Setup -> Process Automation Settings, we can enable the settings. Approve,
Yes, Reject, No etc. are few of the responses.
106
Q. You are not getting an option to create list custom settings. Which setting needs to be
enabled?
Ans: From Setup -> Schema Settings -> Enable Manage list custom settings type.
Q. Once a lead is converted it is not visible anymore in the UI. Is there any permission
available to view converted leads?
Ans: Yes. There is app permission, View and Edit Converted Leads.
Q. You are trying to convert a master detail relationship field to lookup relationship. But you
are not able to see the change field type button. What could be the reason?
Ans: Check there should be no roll up summary field present in the parent object. Also, if there is
any deleted roll up field present in recycle bin that needs to be erased as well.
Q. One of the users in your org is not able to create campaigns. You checked the profile/
permission sets and ensured that he has access to create campaigns. What could be the
reason?
Ans: Check if the Marketing User checkbox is selected in the user detail page of the user.
As we conclude this Salesforce Admin module, it's important to reflect on the simplicity
and power that this foundation brings to the entire Salesforce ecosystem. The Admin
module isn’t just about creating fields or configuring profiles — it’s about understanding
the logic that drives business processes and user experience.
For testers, this knowledge is not optional — it is essential. A clear understanding of the
admin configurations helps identify potential issues early, test with greater accuracy, and
ensure that the system behaves as expected under various user roles and conditions.
From validation rules and record-level security to automation — every test scenario
starts with understanding how the system is configured.
To beginners, this is your gateway. Grasping these fundamentals will give you
confidence to navigate and contribute meaningfully to Salesforce projects.
To the experienced, let this be a reminder that mastering the basics leads to excellence
in more advanced areas. No matter how far you grow, the Admin layer remains the
backbone of every successful implementation and every well-designed test strategy.
Let’s carry this knowledge forward — not just to test better, but to build with purpose,
think with clarity, and grow continuously as Salesforce professionals.
Thank You
- Prasad Kadam
- www.linkedin.com/in/prasad-arun-kadam