Beruflich Dokumente
Kultur Dokumente
Lookup Relationship
1. What is App in Sales force?
2. Master-Detail Relationship
An app is a group of tabs that work as a unit to provide
functionality. Users can switch between apps using the 4. What is a “Lookup Relationship”?
Force.com app drop-down menu at the top-right corner of
every page. This type of relationship links two objects together,
Custom objects are database tables that allow you to store 6. Lookup field is not required.
data specific to your organization in salesforce.com. You can
use custom objects to extend salesforce.com functionality or 5. What is “Master-Detail Relationship”?
to build new application functionality. Master Detail relationship is the Parent child relationship. In
Once you have created a custom object, you can create a which Master represents Parent and detail represents Child. If
custom tab, custom related lists, reports, and dashboards for Parent is deleted then Child also gets deleted. Rollup
users to interact with the custom object data. You can also summary fields can only be created on Master records which
access custom object data through the Force.com API. will calculate the SUM, AVG, MIN of the Child records.
1. Up to 2 allowed to object.
Navigation to create object in sales force: Setup->Build-
>Create->Object-> Click on new object and create object 2. Parent field on child is required.
according to your requirement.
3. Access to parent determines access to children.
3. How many relationships included in SFDC & What are
they? 4. Deleting parent automatically deletes child.
We are having two types of relationships, they are 5. A child of one master detail relationship cannot be the
parent of another.
6. Lookup field on page layout is required. Tab is a user interface component to user creates to display
custom object data.
6. How can I create Many – to – Many relationship?
There are three type of tabs.
Lookup and Master detail relationships are one to many
relationships. We can create many – to – Many relationship 1. Custom Tabs
by using junction object. Junction object is a custom object
with two master detail relationships. 2. Visual force Tabs
3. Next change the data type of the field from look up to Self Relationship is a lookup relationship to the same object.
Master detail. Suppose let’s take an object “Merchandise”. Here we can
create relationship in between the Account to Account (same
8. List examples of custom field types? object) object. That is called “Self Relationship”.
Text, Pick list, Pick list (multi select), Date, Email, 13. What are the main things need to consider in the
Date/Time, Date, Currency, Checkbox, Number, Percent, “Master-Detail Relationship”?
Phone, URL, Text Area, Geolocation, lookup relationship,
master detail relationship etc….. Record level access is determined by the parent, Mandatory
on child for reference of parent, cascade delete (if you delete
9. What is TAB in Salesforce? the parent, it can cascade delete the child).
14. What is difference between trigger and workflow? 2. We can query on all fields of any datatype
1. Workflow is automated process that fired an action based 4. We can perform DML operation on query results.
on Evaluation criteria and rule criteria.
SOSL(Salesforce object Search Language).
2. We can access a workflow across the object.
1. Using SOSL we can search on many objects at a time.
3. We cannot perform DML operation on workflow
2. We can query only on fields whose data type is text, phone
4. We cannot query from database and Email.
1. Trigger is a piece of code that executes before or after a 4. We cannot perform DML operation on search result
record is inserted or updated.
17. What is difference insert() and database .insert() ?
2. We can access the trigger across the object and related to
that objects Using insert method we can insert the records but if any error
occurs in any record system will throw an error insertion fail
3. We can use 20 DML operations in one trigger. and none of the records are inserted.
4. We can use 20 SOQL’s from data base in one trigger. If we want to execute partially success of bulk insert
operation we will use database .insert.
15. What is Wrapper class?
A Wrapper class is a class whose instances are collection of
18. What is Static Resources?
other objects.
Using Static Resources we can upload images, zip files, jar
It is used to display different objects on a Visual Force files, java script and CSS files that can be referred in a visual
page in same table. force page.
16. What is Difference between SOQL and SOSL? The maximum size of Static Resources for an organization is
250mB.
SOQL(Salesforce Object Query Language).
19. How to call java script using Static Resource in Visual
1. Using SOQL we can Search only on one object at a time. Force page?
Add java script file in Static Resource setup -> develop -> Manual Sharing is sharing a single record to single user or
Static Resources -> click on ‘New’ -> Name: filename and group of users.
add file from local desktop and save.
We can see this button detail page of the record and this is
We can use that file as follows in Visual Force page visible only when OWD setting is private.
21. How many ways we can share a record? Setup -> security controls -> sharing settings -> select the
object and provide name and
Role Hierarchy:
Conditions and save
If we add a user to a role, the user is above in the role
hierarchy will have read access. Apex sharing:
Setup -> manage users -> roles -> setup roles -> click on Share object is available for every object(For Account object
‘add role’ -> provide name and save. share object is AccountShare ). If we want to share the
records using apex we have to create a record to the share
OWD: object.
Defines the base line setting for the organization. 22. What are the actions in workflow?
Defines the level of access to the user can see the other
1. Email Alert
user’s record
26. How many controllers can be used in a visual force Permission sets extend user’s functional access
page? without changing user’s profile.
Salesforce come under SAAS so, we can use one Ex: A user has only read access through profile on custom
controller and as many extension controllers. object, administrator want to give access Edit and create
operations to him without changing the profile. Administrator
27. What is difference between Action support and Action creates the permission set having edit and creates operation
function? on custom object and assign to that user.
Action function: Invoke the controller method from java
script using AJAX and we can use action function from
different places on visual force page. 31. What are the different types of controllers?
Action support: Invoke the controller method using AJAX We have three types of controllers. They are
when even occurs on page like onMouseOver, onClick,
ect… and we can use action support for particular single 1. Standard controller.
apex component.
2. Custom controller.
3. Controller extension. If we use custom controller, we can define new navigation
elements or behaviors, but we must also reimplement any
Controller definition: A Visual force controller us a set of functionality that was already provided in a standard
instructions that specify what happens when a user interacts controller.
with the components specified in associated Visualforce
markup, such as when a user clicks a button or a link. 33. What is the difference between the Workflow and
Approval Process?
Controllers also provide access to the data that should be
displayed in a page and can modify component behavior. Workflow rules and Approval Processes can be used together.
Standard Controller: A standard controller consists of the Workflow Rules Approval Processes
same functionality and logic that is used for a standard
Salesforce page. For example, if we use the standard accounts
controller, clicking a Save button in a Visualforce page result Are triggered only when a
in the same behavior as clicking Save on a standard Account user clicks “Submit for
Are Triggered upon Save Approval” button.
edit page.
35. How to make the Record type as default? 38. What are the annotations in the Apex?
Total number of records 40. How many controller extensions we can use?
retrieved by SOQL queries 50000
Any number of controller extensions.
Total number of records 41. What are the Collections?
retrieved by SOQL queries 20
Lists.
Total number of records Maps.
retrieved by a single SOSL
query. 200 Sets.
42. What are the difference between the Sets and Maps? Use the without sharing keywords when declaring a class to
ensure that the sharing rules for the current user are not
A Set is an unordered collection of primitives or sObjects enforced.
that do not contain any duplicate elements.
47. What is the difference between Tigger.new and
A Map is a collection of key-value pairs where each unique
Trigger.old?
key maps to a single value. Keys can be primitive data
type, while values can be a primitives, sObject, collection Trigger.new : Returns a list of the new versions of the
type or an Apex object.
sObject records.
43. What are the data types we can give for the Key and
Note that this sObject list is only available in insert and
Values in Maps? update triggers, and the records can only be modified in
Keys – Primitive Data Types. before triggers.
Values – Primitive, sObject, Collection Type or an Apex Trigger.old : Returns a list of the old versions of the sObject
Object. records.
44. Have you Implemented record type in your project? Note that this sObject list is only available in update and
delete triggers.
Yes, we have created Record Types and we have done Page
Layout Assignment also. 48. What is the Custom Settings?
If we deletes the Parent If we delete the Parent record, There are two ways to create a visualforce page. They are
record, then the child will then the Childs will be deleted
not be deleted. automatically. 1. By using the URL.
As per now, Salesforce does not allow to delete any user, how Email.
ever we can deactivate the user.
59. How to hide a tab for an User? 63. What is the best practice you are using while coding?
Bulkify your code: Bulkifying Apex code refers to the
By Profiles we can hide a tab from a user.
concept of making sure the code properly handles more
Use “Tab Hidden” setting for Tab Hide. than one record at a time. When we try to load the link of
the records using the Data Loaders, then we make sure that
60. What is an External ID? code will satisfy.
Model View Controller (MVC) design pattern is the one of 2. Vertical bar Chart.
the most popular design pattern which contains three
modules. 3. Line Chart.
Model: What Schema and Data does salesforce uses to 7. Gauge Chart.
represent the system completely. In Salesforce, we can say
that sObject are the model. 8. Metric.
View: How the Schema and data is represented. Visualforce Note: The Components of the Dashboard that use the Grand
is used to present the data to users. Totals is Metric and Gauge.
Controller: How the interface actions. Controllers are used We have a attribute called action in the
to perform the actions whenever users interact with <apex:commnadbutton> tag in the VF page.
Visualforce.
<apex:commandButton action=”{!save}” value=”Save”
Example: Standard, Custom(Apex). id=”theButton”/>.
68. How much code coverage we can do for a Test Class? Validation rule verify that the data a user enters in a record
meets the standards we specify before the user can save the
75%. record.
69. What is the Formula Filed? Validation rule also included the error message to display
to the user when the rule returns a value of the true due to
A read-only field that derives its value from a formula an invalid value.
expression which we define. The formula filed is updates
when any of the source field change. 83. If we don’t have 75%code coverage, can we move it from
one sandbox to another sandbox?
70. Mention the names of Standard Controllers?
Yes, we can move a class from one Sandbox to another
Accounts. sandbox. But if we want to move a class from sandbox to
environment we need to have a Test Class with a minimum of
Contacts. code coverage should be 75%.
Opportunities.
Table.
Note : The Components of the dashboard that use the Grand No.
Totals is Metric and Guage.
73. What is the validation rule?
67. How to call method in the VF page?
Validation Rules verify that the data a user enters in a
We have a attribute called action in record meets the standards we specify before the user can
the <apex:commnadbutton> tag in the VF page. save the record.
<apex:commandButton action=”{!save}” value=”save” Validation rule also included the error message to display
id=”theButton”/>. to the user when the rule returns a value of true due to an
invalid value.
68. How much code coverage we can do for a Test Classes?
74. If we don’t have 75% code coverage, can we move it
75%. from one sandbox to another sandbox?
69. What is the Formula Field? Yes, we can move a class from one sandbox to another
sandbox. But if we want to move a class from sandbox to
A read-only field that derives its value from a formula production environment we need to have a Test Class with
expression which we define. The formula field is updated a minimum of code coverage should be 75%.
when any of the source fields change.
75. Can we have duplicates in the External ID?
70. Mention the names of Standard Controllers?
No
Accounts, Contacts, Opportunities, Leads…etc.(all
Standard and custom objects). 76. Which method in custom settings returns list of records?
79. What is the difference between giving with sharing and Before Delete: Before Deleting the record, trigger will be
without sharing while creating a class? fired.
The class with sharing means we are enabling the access to After Insert: After Inserting a newly entered record into
the profiles. The class without sharing means we are database, the trigger will be fired.
disabling the access to the profiles.
After Update: After modifying the record once it is saved
80. Can we put list in the Map? to database. the trigger will be fired.
Yes, we can put list in the Map. Please find the code below. After Delete: After Deleting a record, if user need to
perform any action, he can fire the trigger using this after
Map<Id, List<Opportunity>> MapList=New Map<Id, delete event.
List<Opportunity>>();
After Undelete: Once the record gets deleted, it will be
sent to recycle bin to its respective object and the
81. What is the Rollup Summary?
transaction is done.
A read-only field that displays the sum, minimum, or
maximum value of a field in a related list or the record
count of all records listed in a related list. 84. Can we have duplicate in the External ID?
82. How can we implement a scheduler in Force.com? No.
In Force.com we have a concept of scheduling the apex. 85. What are the different types of trigger events?
We can write a block of code which can be scheduled at
particular point of time in a week. An event in a trigger refers to a situation when the trigger gets
fired.
83. What are the different types of the trigger events?
Before Insert: Before updating a record onto the database,
An event in a trigger refers to a situation when the trigger gets the trigger will be fired.
fired.
Before Update: Before updating a record which is fetched Rerender: If we want to refresh partial page in Visual force
from database, the trigger will be fired. page we have to use Rerender.
Before Delete: Before Deleting a record an once it is saved Render as: By using this we can convert entire visual force
to database, the trigger will be fired. into PDF. the syntax is Render as = “pdf”.
After Insert: After inserting a newly entered record into 88. What is the difference between Trigger and Workflow?
database, the trigger will be fired.
Workflow: Inbuilt functionality, used on single object.
After Delete: After Deleting a record, a user need to
perform any action, he can fire the trigger using this after Trigger: Used for complex business process in which
delete event. multiple Objects can handle.
After Undelete: Once the record gets deleted, it will be sent Examples:-
to recycle bin. So, a trigger can be fired when user is
moving back from recycle bin to its respective object and Using Workflow, Based on the criteria we mentioned on
the transaction is done. the parent record, we can do filed update on the parent only
but not on the chid object.
86. What are the types of Triggers?
Using Triggers, Based on the criteria we mentioned on the
There are two types of Triggers in Salesforce. parent record, we can do field update on the child also.
Bulk Triggers. 89. How many characters can we enter in the formulae
field? What will happen if we exceed the character limit?
Recursive Triggers.
We can enter upto3900 characters in the formula field. If
Recursive Trigger: A Trigger that creates a new record as we exceed the limit, then it will give the compilation error.
part of its processing logic; however, that record may then
cause another trigger to fire, which in turn causes another to 90. Can we include on formula field with in another
fire, and so on. formula field? What about the size?
87. What is the difference between render, rerender and Yes, we can include on formula field with in another formula
renderas? field. It will calculate the formula field characters which we
included in the formula field.
Render: Component in Visualforce page can show or hide
by suing render. 91. What is the action Function in the VF pages?
<apex:actionFunction>: A component that provides Update.
support for invoking controller action methods from
Javascript code using an Ajax request. Upsert.
<apex:actionsupport>: A component that adds AJAX The maximum response size when creating a PDF must be
support to another component, allowing the component to below 15 MB, before being rendered as a PDF.
be refreshed asynchronously by the server when a
particular event occurs, such as a button click or 95. What is the Order of Execution?
mouseover.
The Order of execution gives the what are the events that
<apex:actionPoller>: This component specifies a timer Salesforce performs in order.
that sends an Ajax update request to Force.com according
to a time interval that we specify. Executes all before triggers.
92. What is the difference between the ISBLANK() and System validations are performed.
ISNULL ()?
Custom validations are performed.
Both determines if an expression has a value and returns
TRUE if it does not. If it contains a value. this function Saves the record but doesn’t commit.
returns FALSE. Executes the assignment rules.
ISBLANK(expression) : The expression allows both Executes the Workflow rules.
number and text fields
Commit to th database.
ISNULL(expression): Here the expression allows only
number fields. 96. Can we change the data type from lookup relationship to
master-detail relationships?
93. What are the Operators we can do using Data Loader?
Insert.
Yes, we can change the Lookup relationship to master-detail
relationships.
97. We can create master-Detail relationships if records 100. What are the OWD?
already exist on object? Then how to achieve this one?
Organization Wide Default’s is used to restrict access.
First we have to create the lookup relationship. Next update
OWD sharing settings give you a baseline level to access
the existing records with some value in the lookup field. Now
for each object and enable you to extend that level of
change the data type from lookup to master-detail.
access using hierarchies.
98. What is the difference between Force.com and
101. What is sharing rule?
Salesforce.com?
Sharing rules represent the exceptions to your organization-
Force.com is the platform used to develop the applications in
wide default settings. Using sharing rules we can extend the
the salesforce. Salesforce.com is keyword used to search
access for the records.
anything.
102. At profile level what are the permissions we must give
99. What is the difference between Data Loader and Import
for OWD’s does not work?
Wizard?
View All and Modify All permissions.
Data Loader Import Wizard
103. What is permission sets?
Full form for CRM or Acronym for CRM is “Customer 4. What are the Advantages of Cloud Computing?
Relationship Management “. We can understand from the
Cloud computing has made tremendous growth
full form where CRM is an application used to automate
in processing power, reliability of the Internet and the
Sales and marketing functions by a using a Software
great increase in broadband speeds.
called CRM Software . BY using CRM Software every
Company / Organization plans to increase their revenues It makes tremendous sense to make use of the centralized
and profits. This strategy of increasing revenue is done server of the provider of cloud computing services as not
mainly by attracting Customers, clients, Sales etc. only does it reduce the costs by a great extent by making
redundant the need to buy several software licenses, it also
Read more on CRM :- What is CRM. eliminates the huge costs required by an organization to
maintain and upgrade existing software.
3. List some CRM Software’s?
Read more on Cloud Computing Advantages :- Cloud
We have number of CRM software’s which are provided by Computing Advantages.
top CRM companies some of them are listed below
depending upon their present market. 5. What is the definition of CRM?
1. Salesforce CRM. “Cloud Computing definition given by NIST (US National
Institute of Standards and Technology) :Cloud
2. Microsoft Dynamics CRM. Computing is a model for enabling ubiquitous, convenient,
on-demand network access to a shared pool of configurable
3. Oracle CRM.
computing resources that can be rapidly provisioned and
4. SAP CRM. released with minimal management effort or service provider
interaction“.
5. Sage CRM.
6. What are deployment modes of cloud computing?
6. NetSuite CRM.
Cloud computing services can be provided in four different
7. Oracle CRM on Demand. deployment modes depending on size and structure of an
8. Oracle Sales Cloud(Fusion CRM). organization. Four deployment modes of cloud computing are
2. Private Cloud.
3. Hybrid Cloud and Public cloud can be available to people across the world. In
this Public Cloud the user has no control over the resources.
4. Community Cloud.
11. What is Private Cloud?
7. What is PaaS?
Private Cloud Can be accessed only with in the limited
PaaS means” Platform as a Service”. Here in “PaaS “ the premises. In Private cloud Cloud Services Providers Cloud
cloud service providers provides hardware, OS(operating infrastructure to particular Organization or Business
System), Storage, Network services over the cloud. It is the specially. This Cloud infrastructure is not provided to others.
way like a rent. If there is no service like Platform and there
will be no Applications. Which applications are build on a 13. What is Hybrid Cloud?
Platform.
Hybrid Cloud is the combination of number of clouds of any
Get more details on Paas :- What is PaaS. type but the cloud has the ability to allow data and / or
applications to be moved from on cloud to another cloud.
8. What is SaaS? Hybrid Cloud is a combination of (Public Cloud ,Private
Cloud, Community Cloud). Here API is used as an interface
SaaS means Software as a Service. Through this Services all
between public and Private Cloud.
the software’s are distributes over the cloud. By using SaaS
no need to install any software all software’s are readily
14. What are the different types of Cloud Service
available over the internet .
providers?
Get more details on SaaS :- What is SaaS.
Cloud Service Providers are those who provide cloud services
9. What is IaaS? to the business and customers or consumers. Cloud Service
providers will have huge data base, Data centers,
Full form IaaS is “Infrastructure as a Service”. Here in infrastructure, software’s, platform and hardware systems.
IaaS the cloud service providers will provides infrastructure
Get more details on Cloud Service providers :- Different
like servers, hosting services and storage. Servers and
Cloud service providers list.
storage’s are the basic services provide by Cloud Service
Providers. 15. Difference between Public and Private Cloud?
Get more details on IaaS :- What is IaaS.
Public cloud can be available to people across the world. In
10. What is Public Cloud? this Public Cloud the user has no control over the resources.
Where Private Cloud Can be accessed only within the
limited premises. In Private cloud Cloud Services Providers 1. Group.
Cloud infrastructure to particular Organization or Business
specially. This Cloud infrastructure is not provided to others. 2. Professional.
3. Enterprise.
16. Salesforce.com is based on which cloud
computing Service ? 4. Unlimited.
Salesforce.com is based on Software as a Service ( SaaS). 20.Number of Salesforce Editions released per year?`
17. What are common factors on SaaS, PaaS, and Salesforce Releases e updates for every year. They are
IaaS?
1. Spring.
SaaS, Paas and IaaS are the three types of services provided
using “cloud”. Their common factor for providing services 2. Summer.
to organization and customer is the “CLOUD” depending
3. Winter.
upon the types of the service they need. Saas provides
Software service on cloud where PaaS provides Platform for 21.Difference between Salesforce.com and Force.com?
application development and finally IaaS provides
Infrastructure. Salesforce.com and fore.com are relatively same but they are
different in their functionality. Salesforce.com is used to
18.What is Salesforce? develop CRM functionality based application where
force.com is used to customize our data model, business logic
Salesforce is one of the best customer relationship and User interface
management (CRM) tool. Salesforce is among one of the
best web based flexible and powerful database provider 22.What is Database.com?
available in the market.
Database.com is a type of service provided by Salesforce.com
Get more details on Salesforce :- What is Salesforce. to enhance the power of Salesforce.com CRM applications.
Database.com provides “Data as a Service” to subscribers.
19.Different Salesforce Editions?
23.How many types of portals are available in
Salesforce.com provides different types of editions and
features depending upon the cloud. For Sales cloud it Salesforce?
provides four different types of editions. They are In Salesforce.com we have three types of portals. They are
1. Customer Portal. An Objects is represented as a database table which stores
organization data . Objects consists of set of fields and we
2. Partner portal. store data against that field. To view
3. Self Service portal. data Salesforce provided TABS.
Get more details on Salesforce objects:- Objects in Salesforce Standard fields for custom objects stores the information
about created by, modified by, currency, Name, owner and
26.What is an object in Salesforce? Division. These are the standard fields in Salesforce.com.
Custom field for custom objects store unique data or To create roles in salesforce go
information of an organization. to setup=>Administer=>Manage Users=> Roles.
30. How many custom fields can I created in an 33.Difference between Role and Profile?
object?
Roles :- Using we can provide record level access like
In Unlimited edition we can create up to 500 fields per object. organization wide defaults, Role hierarchy, sharing rules and
In professional edition we can create up to 100 custom fields Manual sharing. Simply roles influences record level access.
per object.
Profiles :- Using profile object level and field level access
31. What is a profile? can be made like general permissions, tab level permissions,
read & write permissions etc.
Profiles are those which defines user’s to perform different
functions like settings and permissions in salesforce. It is 34. Number of standard profiles available in
another way to restrict or control access to a particular record. Salesforce.com?
Profile are of two types. In salesforce we have 6 standard profile they are.
1. Standard Profile. 1. Standard user.
2. Custom Profile. 2. Solution manager.
Standard Profile : Profiles created by force.com are called 3. Marketing User.
Standard Profiles.
4. Read only.
Custom Profiles :Profiles created by user are called
Custom Profiles. 5. System administrator.
32. What is Role ? 35. How can you use the term “Transfer Record” in
profile?
Role Hierarchy settings make the managers and
subordinates to edit, and view the records. The users in the Transfer record is a type of permission in salesforce. If a user
Hierarchy can be able to view, edit and report all the data is is given access to transfer a record then the user will have
shared. the ability to transfer the records which have Read access.
1. Attachments.
39.What is a dependent picklist?
2. Documents.
Dependent Picklist allows to contain multiple values and pick
value one among them or Multiple values among them. 3. Google drive.
Dependent fields depends upon controlling field.
4. Libraries.
Read more about dependent Picklist :- Dependent picklist.
5. Chatter Files.
40.What is Page Layout and Record Types?
44.What are Static Resources?
Page Layout :- In page layout customization can be done
like fields, related lists, custom links can be arranged. Static resources helps to store upload images, files, zip files,
documents, javascript files, CSS Files which can be used in
Record Types :- Record types in salesforce helps to visualforce pages. Maximum data storage limit for static
implement business processes like defining picklist values resource is 250mb.
for standard and custom pick lists.
45.List some standard indexed fields in 1. Manual Sharing.
salesforce.com?
2. Automatic Sharing.
Id, name, owner fields, lookup fields, master-detail
51. What is Manual Sharing?
relationship fields, audit dates like Last Modified dates etc are
the standard indexed fields in Salesforce.com. Manual sharing is the process of sharing records manually.
46.Which fields are Indexed by default in Salesforce? 52. What is permission set?
Salesforce indexed some fields by default they are Id, name, Permission sets in salesforce.com are the combination of
owner fields, lookup fields, master-detail relationship fields, different settings and permission sets given to user to access
audit dates like Last Modified dates. records and files.
47.Which fields cannot be added as a custom Index? Note :- Manual sharing is available for only Organization
wide default settings are private to the object.
Formula fields.
53. Difference between profiles and permission sets?
48.In salesforce, Can two users’ can have same
profile? Permission Sets : In this Permission sets we define the access
level of the user. Generally we determine what a user can do
Yes. in the applications. These are used to grant additional
permission to a user.
49.Is it possible to edit formula field values in a Profiles : In Object level Security, Profiles are assigned to the
record? user by system administrator. A profile can be assigned to
many users where as a user can have only one Profile.
No.
54. How can you define Field Dependency?
Salesforce interview Questions on Security
In Field dependency, we have to fields controlling filed and
50. What is a Sharing Rule? dependent field. When a selection is made the controlling
field controls dependent picklist values.
Sharing rules in Salesforce represent the permissions and
exceptions to your organization. By using sharing rules we Ex:- When a country is selected in dependent picklist then the
can grant access to edit, read, read/write permissions to states are available to that country. Here country is
user. Sharing Rules are of two types. They are controlling field and State is dependent field.
55. How many field dependencies we can use in Visual Record Types.
Force page?
Tab Settings.
We can use up to 10 field dependencies in visual force pages.
Assigned Apps.
56. Tell me about Field-Level Security?
Object Permissions.
In field level security, we control the user what to see, edit, Field Level Security.
delete of a particular field in the object.
Apex Classes
57. Briefly describe about Field-Level Security?
Visual Force Pages
In field level security, we control the user what to see, edit,
delete of a particular field in the object. In some situation like 58. What are Login Hours and Login IP Ranges?
if we want to grant access control over Object to a user but
the user should not be able to access some particular fields in Login hours are set in an organization to restrict the user’s
that objects then we go for Field Level Security. who tries to login before or after login hours.
Field Level Security can be controlled by Profiles and To set login hours in an organization go
Permission sets. to Setup=>Administration=>Manage users=>Profiles.
61. What are Organization Wide Defaults? 65. In how many ways can we share a record?
Organization wide Defaults define the baseline level of Records can be shared in 5 types they are
access to data records for all users in an Organization.
1. Role Hierarchy.
Organization wide Defaults are used to restrict access to
data(Records). 2. Organization Wide Defaults.
64. What are the different types of Sharing Rules in Get more details on record level security :- Record level
Salesforce and explain them? security in salesforce.
1. Account sharing Rule. 68. If i want Object level accesses then what should i use
from Salesforce security model?
2. Contact Sharing Rule.
Get more details on object level access. Object Level Security
3. Case Sharing Rule. in Salesforce.
69. What are governor limits? It’s Profile.
Governor Limits in Salesforce.com are the run time limits 75. While setting OWD (Organization wide sharing), can we
enforced by the apex runtime engine to write scalable and change/modify the setting of child record in case of Master-
efficient code. Detail relationship?
Read more on Governor Limits :- Governor limits in No, we can not change the settings of child record in Master
Salesforce. Detail relationship because child record is controlled by
parent record.
70. Is it possible to bypass Grant Login access using
Hierarchies in case of standard objects? 76. Number of accesses available in Organization Wide
Defaults and what are they?
Yes
We have 13 types of access in Organization default settings.
71. Can we use sharing rules to restrict data access? They are
72. Is it possible to create sharing rules for detail object? 2. Controlled by parent
73. How can you change the setting “Grant Access Using 6. Public Full Access.
Hierarchies” for Standard Objects ?
7. Use.
It is not possible , by default Grant Access Using Hierarchies
options are enabled for standard objects and they can not be 8. No Access.
changed. For custom objects we can change “Grant Access 9. View Only.
Using Hierarchies “settings .
10. Hide Details.
74. What are the Mandatory points that you think while
creating User and Role ? 11. Hide Details and Events.
12. Show Details. Relationship is optional.
77. In Partner Community, external user is having appropriate Roll-Up summary fields cannot be available.
OWD and Profile Settings for Opportunity or consider any
other Object. However they are getting 25 look-up relationships can be created to one Object.
insufficient privilege access, what might be cause of this error ?
80. What is “Master-Detail Relationship”?
1. First check that every field used in report has Field level
security for external users. We create Master-Detail Relationship using Junction Object
in Salesforce.
2. Check whether Standard Report Visibility settings are
enabled, if it is enabled user can be able to see reports Child record must have a associated parent.
which are based on standard report types.
Cascade record-level security.
3. Now external user can be able to access sensitive
information of internal user. Cascade record deletion.
83. Define various characters of Roll-up Summary Field? Junction object can also be called as Join Object.
1. Roll-Up Summary field can be created only in a object Junction Object links each objects in Many-Many
which is referred as a object with a master detailed Relationship.
relationship field.
86. How to create Roll-up summary field on look-up
2. Roll-Up Summary field can only created for Master-detail relationship?
Relationship.
https://www.salesforcetutorial.com/how-to-create-roll-up-
3. Roll-Up Summary field can not be created for Look-up summary-fields-in-salesforce/
Relationship.
87. Can we have Roll up Summary fields in case of Parent-
4. It Derives the data from child Object. Child Relationships?
7. Roll-Up Summary fields are not available for mapping lead No. roll up summary fields are read only fields and they can
fields of converted fields. not be edited.
84. List out the functions of Roll-up Summary field ? 89. Is it possible to create Roll up summary field on parent
object ?
Count : It calculates the total number of related records.
Yes, we can create Roll up Summary field on parent object
Sum : It totals the values of selected fields.
only with master detail relation between objects.
Min : Displays lowest value.
90. How to create Many – to – Many relationship?
Max : Displays the highest value.
https://www.salesforcetutorial.com/many-to-many-
85. What is Many-Many Relationship in Salesforce ? relationships-in-salesforce/
91. What is Junction Object? 96. In case of Master-Detail relationship, on Update of master
record can we update the field of child record using workflow
In salesforce, Junction Object are the part of the objects rule?
which joins one object to another. These are specially used to
join many objects in Many to Many relationships. No
92. What are the main things need to consider in the “Master- 97. In case of Master-Detail relationship, on Update of child
Detail Relationship”? record can we update the field of Parent record using
workflow rule?
Cascade deletion of the child records is done when parent
record is deleted in Master-Detail Relationship. Yes, we can update the field of Parent record using workflow
rule.
93. Can we convert the look up relationship to Master Detail
relationship? If so How can we convert? 98. What happens to detail record when master record is
deleted?
Yes, we can convert Look-Up relationship to Master-Details
Relationship. Conversion can be done only if all the fields When master Record is deleted, it’s detail records are also
have valid look-Up fields values only.’ deleted.
94. Can we create Master Detail relationship on existing 99. What happens to child record when a master record is
records? deleted in Look-up Relationship?
Yes, It is possible to create Master-Detail Relationship on Child records are not deleted.
existing record. First we have to create Look-Up relationship
100. A custom object contains some records, now my
to a record then convert it to master-Detail Relationship.
requirement is to create field in this object with master detail
95. How to create many to many relationships between two relationship.
objects?
No. we can no create master detail relationship first create
Many to Many Relationship can be created using Junction look up relationship and associate look fields for every parent
object. record and then convert this to Master detail relationship.
Learn how to create Many to Many Relationship in 101. Can we create both master detail relationship and Look-
Up Relationship at a time ?
Salesforce.
Custom reports in salesforce are those created by user with 110.Who can run Reports?
specific criteria. These type of report can be deleted, edited
In Salesforce.com, most reports run automatically when we
and stores in personal folders.
click on the report name. If we want to run a report click
105.What is a Tabular report ? on “Run Report” to run automatically.
Tabular reports in salesforce are those where the data is 111.What is a bucket field in reports?
displayed in the form of list. In Tabular reports custom data is
In salesforce reports, bucket fields are used to categorize
arranged with out subtotals.
reports records . When we use bucket field in reports there is
106.What is a Summary Report? no need of creating formula or a custom field.
Summary reports in salesforce are those where the data is 112.Is it possible to delete reports using Data loader?
displayed in the form of summary format. Sorting, sum-total
No, it is not possible to delete reports using data loaders.
of data can be available in this report.
113.What are Dashboards? 1. Run as specified User.
Salesforce Dashboards are the graphical representation and 2. Run as Logged-in User.
visual presentation of reports data in salesforce.
118.Who can access “drag and drop dashboard”?
114.What are the different Dashboard Components?
User who have permissions in managed dashboard can access
Salesforce dashboard components are used to represent data. drag and drop dashboard.
Salesforce dashboards have some visual representation
components like graphs, charts, gauges, tables, metrics and 119.Which type of report can be used for dashboard
visual force pages. We can use up to 20 components in single components?
dashboard.
Summary reports and Matrix reports are used for dashboard
115.What are dynamic Dashboards? components.
Dynamic dashboards in Salesforce displays set of metrics that 120.Which permission is required to set the running user
we want across all levels of your organization. Enterprise other than you in dashboard?
Editions can use five dynamic dashboards and Unlimited
The user must have “View All Data” permission is required
edition can use ten dashboards.
to set the running users.
116.Can we schedule dynamic dashboards?
121.What is the use of “floating report header”?
No, we can not schedule dynamic dashboards for refresh. It
Floating report headers enables us to display the column
must be done manually.
header visible on each page when we scroll the report page.
117.Explain dynamic Dashboard.
122.How to enable “floating report header”?
Dynamic dashboards in Salesforce displays set of metrics that
To enable floating report header in salesforce go to
we want across all levels of your organization.
Setup=>Customize=>Reports and Dashboards=>User
Dynamic Dashboards in salesforce are Created to provide Interface settings=>Click on enable floating report header.
security settings for the dashboards in salesforce.com. We
123.What is Analytical Snapshot in Salesforce.com ?
may have a requirement in an organization to “view all
data” by every user in an organization according to their Analytical Snapshot in Salesforce are used to create reports
access we have to select Run as Logged-in User. There are on historical data.
two setting option in Dashboards. They are
124.What is Workflow? Workflow tasks in salesforce are used to assigns a task to
users. Using tasks we can specify the Subject, Status, Priority,
Salesforce Workflow is a business logic that evaluates the and Due Date of the task. Tasks are workflow & approval
records as they are created, updated in an object to apply actions that are triggered by workflow rules or approval
automated process like Assigning Tasks, Emails, Field processes.
Update and outbound message sending.
128.What is a Workflow Alert?
125.Different Workflow Components available in
salesforce? Email alert is one of the action used in workflow and
approval. They are used to generate email template by a
In salesforce.com. workflows consists of 5 components they workflow rule or approval process and sent to destination
are. recipients. We can send workflow email alerts to users,
contacts having an valid email address.
1. Workflow rules.
129.What is a Workflow Field Update?
2. Workflow tasks.
3. Workflow Email alerts. Field updates in workflow and approval processes specifies
the field that we want updated and inserting the new value for
4. Workflow field updates. it. Depending on the field type, we can choose the following
options. They are apply a specific value, make the value
5. Workflow Outbound messages blank, or calculate a value based on a formula you create.
126.What are the different workflow actions available in 130.What is Time-Dependent Workflow?
Salesforce?
Time dependent workflows are not executed independently.
1. Tasks. Time dependent workflows remain constant in the workflow
queue as long as the workflow rule criteria is valid.
2. Email alerts.