Salesforce Menu

Interview Questions

1. What is App in Sales force?

An app is a group of tabs that work as a unit to provide functionality. Users can switch between apps using the app drop-down menu at the top-right corner of every page.

You can customize existing apps to match the way you work, or build new apps by grouping standard and custom tabs.

Navigation to create app in Sales force: Setup ->Build ->Create->App-> Click on new and create your application according to your requirements.

2. What is object in Sales force?

Custom objects are database tables that allow you to store data specific to your organization in You can use custom objects to extend functionality or to build new application functionality.

Once you have created a custom object, you can create a custom tab, custom related lists, reports, and dashboards for users to interact with the custom object data. You can also access custom object data through the API.

Navigation to create object in sales force: Setup->Build->Create->Object-> Click on new object and create object according to your requirement.

3. How many relationships included in SFDC & What are they?

We are having two types of relationships, they are
Lookup Relationship
Master-Detail Relationship

4. What is a “Lookup Relationship”?

This type of relationship links two objects together,
Up to 25 allowed for object
Parent is not a required field.
No impact on a security and access.
No impact on deletion.
Can be multiple layers deep.
Lookup field is not required.

5. What is “Master-Detail Relationship”?

Master Detail relationship is the Parent child relationship. In which Master represents Parent and detail represents Child. If Parent is deleted then Child also gets deleted. Rollup summary fields can only be created on Master records which will calculate the SUM, AVG, MIN of the Child records.

Up to 2 allowed to object.
Parent field on child is required.
Access to parent determines access to children.
Deleting parent automatically deletes child.
A child of one master detail relationship cannot be the parent of another.
Lookup field on page layout is required.

6. How can I create Many – to – Many relationship?

Lookup and Master detail relationships are one to many relationships. We can create many – to – Many relationship by using junction object. Junction object is a custom object with two master detail relationships.

7. A custom object contains some records, now my requirement is to create field in this object with master detail relationship. Can we create master detail relationship in this case?

No, directly we cannot create master details relationship if custom object contains existing records.

Following are the steps to create to create master-detail relationship when records are available in custom object.

1.First create field with lookup relationship.
2.And then associate look field with parent record for every record
3. Next change the data type of the field from look up to Master detail.

8. List examples of custom field types?

Text, Pick list, Pick list (multi select), Date, Email, Date/Time, Date, Currency, Checkbox, Number, Percent, Phone, URL, Text Area, Geolocation, lookup relationship, master detail relationship etc….

9. What is TAB in Salesforce?

Tab is a user interface component to user creates to display custom object data.

There are three type of tabs.
Custom Tabs
Visual force Tabs
Web Tabs

10. Does user can create insert their own custom logo, while creating their own custom applications?

Yes user can upload their custom logo in documents and then they choose that logo for organization.

11. List things that can be customized on page layouts?

We can customize different things on page layout like, Fields, Buttons, Custom Links and Related Lists. We can also create sections.

12. What is a “Self Relationship”?

Self Relationship is a lookup relationship to the same object. Suppose let’s take an object “Merchandise”. Here we can create relationship in between the Account to Account (same object) object. That is called “Self Relationship”.

13. What are the main things need to consider in the “Master-Detail Relationship”?

Record level access is determined by the parent, Mandatory on child for reference of parent, cascade delete (if you delete the parent, it can cascade delete the child).

14. What is difference between trigger and workflow?


Workflow is automated process that fired an action based on Evaluation criteria and rule criteria.
We can access a workflow across the object.
We cannot perform DML operation on workflow
We cannot query from database


Trigger is a piece of code that executes before or after a record is inserted or updated.
We can access the trigger across the object and related to that objects
We can use 20 DML operations in one trigger.
We can use 20 SOQL’s from data base in one trigger.

15. What is Wrapper class?
A Wrapper class is a class whose instances are collection of other objects.
It is used to display different objects on a Visual Force page in same table.

16. What is Difference between SOQL and SOSL?
SOQL(Salesforce Object Query Language)
Using SOQL we can Search only on one object at a time.
We can query on all fields of any datatype
We can use SOQL in Triggers and classes.
We can perform DML operation on query results.
SOSL(Salesforce object Search Language)
Using SOSL we can search on many objects at a time.
We can query only on fields whose data type is text,phone and Email.
We can use in calsses but not in Triggers.
We cannot perform DML operation on search result

17. What is difference insert() and database .insert() ?

Using insert method we can insert the records but if any error occurs in any record system will throw an error insertion fail and none of the records are inserted.

If we want to execute partially success of bulk insert operation we will use database .insert.

18. What is Static Resources?

Using Static Resources we can upload images, zip files, jar files, java script and CSS files that can be referred in a visual force page.

The maximum size of Static Resources for an organization is 250mB.

19. How to call java script using Static Resource in Visual Force page?

Add java script file in Static Resource setup -> develop -> Static Resources -> click on ‘New’ -> Name: filename and add file from local desktop and save.

We can use that file as follows in Visual Force page

<apex: includescript values=” {! $Resource.fileName}”/>

20. What is sharing rule?

If we want to give the access to other users we use sharing rules.

21. How many ways we can share a record?

Role Hierarchy:

If we add a user to a role, the user is above in the role hierarchy will have read access.

Setup -> manage users -> roles -> setup roles -> click on ‘add role’ -> provide name and save.


Defines the base line setting for the organization.
Defines the level of access to the user can see the other user’s record
OWD can be Private, Public Read Only, Public Read and Write.
Setup -> Security Controls -> sharing settings -> Click on ‘Edit’
Manual Sharing:
Manual Sharing is sharing a single record to single user or group of users.
We can see this button detail page of the record and this is visible only when OWD setting is private.

Criteria Based Sharing rules:

If we want to share records based on condition like share records to group of users
Whose criteria are country is India.
Setup -> security controls -> sharing settings -> select the object and provide name and
Conditions and save
Apex sharing:

Share object is available for every object(For Account object share object is AccountShare ). If we want to share the records using apex we have to create a record to the share object.

22. What is production?
We should not make coding changes in production since end-users are using the application from production environment.

23. What is production url?

24. What is Sandbox?
To make any changes for the exiting application we should copy all contents of the production into sandbox and make all changes after that test thoroughly and move those changes into production.
To create the sandbox, in production we can find one link called sandboxes. by clicking on that link we can create the sandbox by choosing type of the sandbox.

24. What is Sandbox url?

25. What are the types of Sandboxes?
Developer Sandbox
Developer pro sandbox
Partial data sandbox
Full copy sandbox

26. What is Developer sandbox?
It copy only configuration changes from the production
It won’t copy real time data
We can test the configuration changes with sample data
Sample data limit is 200mb
Refresh time interval is one day
If we refresh all the sandbox contents will be replaced with production contents

27. What is developer pro sandbox?
Copy configuration changes
No real time data
Sample data limit is 1GB
Refresh time interval one day

28. What is partial data sandbox?
Copy configuration changes
Copy certain amount of real time data
Real time data limit is 5GB
For each table it can copy maximum of 10k records
Refresh interval 5 days

29. What is Full copy sandbox?
It is exact replica of the production
Copy both configuration and entire real time data from the production
Refresh time interval 29 days

Subscribe Now