*Friday CLOSED

Timings 10.00 am - 08.00 pm

Call : 021-3455-6664, 0312-216-9325 DHA 021-35344-600, 03333808376, ISB 03333808376

Salesforce Interview Questions and Answers in UK, London, Birmingham, Glasgow

image_pdfSave PDFimage_printPrint
Salesforce Interview  Q&A

Top Salesforce Interview Questions and Answers

Go through these top Salesforce interview questions to grab your dream job as a Salesforce professional. This list of interview questions includes understanding custom objects, Force.com platform, Salesforce dashboard components, Visualforce, Object Query Language vs Object Search Language, Salesforce report types, and much more. If you want to master Salesforce and get certified, then enroll in Omni Academy’s Salesforce Training today!

Top Answers to Salesforce Interview Questions

1. Compare Salesforce Dev 401 with Salesforce Adv Dev 501.

CriteriaSalesforce Dev 401Salesforce Adv Dev 501
What do we learn?Building customized applications, analytical functions, etc.Apex scripts, Developer Console, deploying MVC architecture, etc.
Who can learn?Software and IT professionalsApp and CRM Developers, System Admins, etc.
What is the average annual salary?US$99,000US$141,000

For more information on average salaries paid to Salesforce professionals across the world, click here

2. What is the benefit of Salesforce CRM?

Here are some of the top benefits of Salesforce CRM:

  • Ensuring faster and better sales opportunity
  • Deploying an analytical approach to customer acquisition
  • Reducing cost and improving customer satisfaction
  • Automation of repetitive and less important tasks
  • Improved efficiency and enhanced communication on all fronts

Know more about Why you should go for the Salesforce Certification Training?

3. What are Custom Objects in Salesforce?

Simply put, custom objects are database tables in Salesforce. All data related to an enterprise can be stored in Salesforce.com, and for that there is a need for a junction object, which is a custom object. The custom object has a Master–Detail relationship. We can create a Master–Detail relationship between two objects, and then connect a child object as a related list. Custom objects, which can be listed in Custom Settings, has a set of static data that is reusable.

In the process, the custom object has to be defined first and then the following steps need to be followed:

  • Join records with the custom object
  • Custom object data is displayed in custom lists
  • Create a custom tab for the custom object
  • Build page layouts
  • Create a dashboard and a report for analyzing the custom object

Moreover, the custom tab, app, and object can be shared.

4. Define Object Relationship in Salesforce.

In Salesforce, we can link the standard and custom object records in a related list. It is done by the object relationship overview. Various types of relationships can be created in order to connect specific business cases with specific customers. It is possible to create a custom relationship on an object and define various relationship types.

5. List various Object Relations in Salesforce.

Object relations in Salesforce can be of the following types:

  • One to many
  • Many to many
  • Master–Detail

Wish to have a career in Salesforce? For more details, check out the Salesforce Course!

6. What is an App in Salesforce?

An app in Salesforce is a container that contains a name, a logo, and a group of tabs that work as a unit to provide specific functionality. Users can switch between apps using the Force.com app’s drop-down menu at the top-right corner of every page.

7. Explain the advantages of Salesforce using the SaaS platform.

Some of the main benefits of Salesforce SaaS are:

  • Its pay-as-you-go model perfectly suites all customers
  • No hassle of infrastructure management
  • All applications are accessed via the Internet
  • Easy integration between various applications
  • Latest features are provided without any delay
  • Guaranteed uptime and security
  • Scalable performance for various operations
  • Ability to access via mobile devices from anywhere

8. How does Salesforce deploy Sales Tracking?

Salesforce is very meticulous when it comes to recording intricate details like sales numbers, customer details, customers served, repeat customers, etc. Salesforce makes it easy to create detailed reports, charts, and dashboards for keeping track of sales.

9. What are Workflows in Salesforce? What are Actions in a Workflow?

A workflow in Salesforce is basically a container or business logic engine that automates certain actions based on particular criteria. If the criteria are met, the actions get executed. When they do not, the record will get saved but no action will be executed.

There are two types of actions in a workflow in Salesforce:

  • Immediate Actions: Actions that get executed immediately when the record is created or edited
  • Time-dependent Actions: Actions that get executed after a certain duration of time, such as 10 days before a records’ close date. After a certain time period, the workflow rules in Salesforce will re-evaluate the record just to make sure that the rule criteria are met. If the record meets the criteria, the aligned actions will be executed.

10. What is a Master–Detail Relationship?

Master–Detail relationship is basically a parent–child relationship, in which ‘Master’ represents the parent and other details represent the child. If the parent is deleted, then the child also gets deleted. Roll-up summary fields can only be created on Master records, which will calculate the SUM, AVG, and MIN of the child records.

11. What happens to the Detail (Child) record when a Master (Parent) record is deleted?

In a Master–Detail relationship, when a Master record is deleted, the Detail record also gets deleted, automatically.

On the other hand, in a Lookup relationship, the Child record will not be deleted, even if the Parent record is deleted.

12. Can you have a Roll-up Summary field in the case of a Master–Detail Relationship?

Yes, we can have a roll-up summary in the case of a Master-Detail relationship but not in the case of a Lookup relationship. This is because a roll-up summary field is used to display a value in the Master record based on the values of a set of fields in the Detail record.

13. What is an sObject type?

An sObject is any object that can be stored in the Force.com platform database. Apex allows the use of a generic sObject abstract type to represent any object.

For example, ‘vehicle’ is a generic type and ‘car’ and ‘motorbike’ are concrete types of ‘vehicle’.

14. What are Triggers in Salesforce? How are they different from Workflows?

Triggers in Salesforce are called Apex Triggers. These are distinct and are available specifically for common and expected actions like lead conversions. It is just a code that is executed before or after a record is inserted or updated.

A trigger is different from a workflow as the former is a piece of code; whereas, a workflow is an automated process and uses no code.

15. What is trigger.new?

Trigger.new returns a list of records that have been added recently to sObjects. The records that are yet to be saved in the database are returned. Only insert and update triggers have the sObject list, and records can only be modified in before.trigger.

16. What is the minimum test coverage required in order to deploy a trigger?

  • System Administrator: Customization and administration of an application
  • Standard User: Can edit, view, update, or delete one’s own record
  • Read Only: Able to just view the records
  • Solution Manager: Comes with the standard user permission but also can manage categories and published solutions
  • Marketing User: Able to import leads into the organization, along with standard user permissions

17. Explain the Force.com platform.

Force.com is the entire infrastructure and codebase on which the complete Salesforce application exists. In other words, Salesforce is built on Force.com, which is a Platform as a Service (PaaS) that lets us simplify the design, development, and deployment of cloud-based applications and websites. Salesforce Developers can work with Cloud Integrated Development Environment and deploy the applications on Force.com servers.

19. List various types of Reports available in Salesforce.

Below are the types of reports available in Salesforce:

  • Tabular report: In this, the grand total is displayed in a table format.
  • Matrix report: This is an in-depth report wherein there are both row-based and column-based grouping.
  • Summary report: Summary report is a report in which the grouping is on a column basis.
  • Joined report: Joining two or more reports into one creates a joined report.

20. How many Reports can be added to the Salesforce dashboard?

A Salesforce dashboard can be seen as a visual and pictorial representation of a dashboard with the facility to add up to 20 reports.

21. Explain various Salesforce dashboard components.

Various Salesforce dashboard components are explained below:

  • Gauge: It is used for showing a single value within a range of custom values.
  • Metric: This is used for displaying a single key–value pair. It is possible to click the empty text field next to the grand total and enter the metric label directly on the components. All metrics placed above and below one another in the dashboard column would be displayed as a single component.

Various dashboard components are explained below:

  • Table: The report data can be shown in a column form using Table.
  • Visualforce Page: It is used for creating a custom component or showing information not available in other component types.
  • Custom S-component: This contains the content that is run or displayed in a browser like Excel file, ActiveX Control, Java applet, or custom HTML web form.

22. What is Visualforce in Force.com?

Visualforce can be defined as the user interface for the Force.com platform. It is a component-based framework that can include over 100 in-built components. It includes a tag-based markup language, and each Visualforce tag corresponds to a page or a field.

The Visualforce framework works on the standard MVC paradigm. It is possible to have tight integration with the database and also deploy auto-generated controllers for database objects. Developers can use Apex codes to write their own controllers. It is also possible to access AJAX components, or they can create their own components.

23. What is a Static Resource in Salesforce?

A static resource lets us upload content that is in the form of .jar and .zip formats, style sheets, JavaScript, and so on. It is recommended to deploy a static resource rather than uploading files to the Documents tab since it is possible to pack a set of files into a directory hierarchy and upload it. These files can easily be referred to in a Visualforce page.

24. Differentiate between Salesforce Object Query Language and Salesforce Object Search Language.

  • Salesforce Object Query Language (SOQL) lets us search only one object. We can query for all types of fields in SOQL. Data Manipulation Language (DML) operations can be performed on the query results.
  • Salesforce Object Search Language (SOSL) lets us search for multiple objects. But, in SOSL, we can query only for texts, emails, and phone numbers. Also, DML operations cannot be performed on the search results.

25. What are the different methods of Batch Apex Class?

Database.Batchable interface contains three methods that must be implemented:

  • Start method:
global (Database.QueryLocator | Iterable<sObject>) start(Database.BatchableContext bc) {}
  • Execute method:
global void execute(Database.BatchableContext BC, list<P>){}
  • Finish method:
global void finish(Database.BatchableContext BC){}

26. What are the different types of Collections in Apex?

Collections are the type of variables used to store multiple numbers of records (data). Types of collections in Salesforce are:

  • Lists
  • Maps
  • Sets

27. What are Maps in Apex?

Maps are used to store data in the form of key–value pairs, where each unique key maps to a single value.

Syntax:

Map<String, String> country_city = new Map<String, String>();

28. What is an Apex Transaction?

An Apex transaction represents a set of operations that are executed as a single unit. These operations include DML operations that are responsible for querying records. All the DML operations in a transaction either get completed successfully or get rolled back completely if an error occurs even in saving a single record.

29. What is the difference between Public Classes and Global Classes in Apex?

A global class is accessible across the Salesforce instance, irrespective of namespaces.

Whereas, public classes are accessible only in the corresponding namespaces.

30. What are Getter and Setter methods?

The get (getter) method is used to pass values from the controller to the VF page.

Whereas, the set (setter) method is used to set the value back to the controller variable.

31. Which fields are automatically indexed in Salesforce?

The following fields are automatically indexed in Salesforce:

  • Custom fields marked as an external ID or a unique field
  • Primary keys (ID, Name, and Owner fields)
  • Audit dates (such as SystemModStamp)
  • Foreign keys (Lookup or Master–Detail relationship fields)

32. A Time-dependent Workflow Action cannot be created for which Workflow?

A time-dependent workflow cannot be created for ‘created, and every time it’s edited.’

33. What is Sandbox in Salesforce? What are the types of Sandboxes available?

Sandbox is a similar copy of a Salesforce production for testing, development, and training. The content and size of a sandbox may vary depending on the type of sandbox and the edition of the production organization which is associated with the sandbox. There are four types of sandboxes available:

  • Developer Sandbox
  • Developer Pro Sandbox
  • Partial Data Sandbox
  • Full Sandbox

34. What is Apex Class?

An apex class is a template from which Apex objects can be created. These classes consist of other classes, variables, user-defined methods, exception types, and the static initialization code.

35. What is Salesforce CRM?

It is a cloud-based CRM that doesn’t require IT experts to set up or manage the cloud. One can simply log in and connect to the customers directly. CRM Salesforce system is a well-organized platform that provides information to its customers from different sources. It is a customer-centric system that integrates customers’ information for an organization’s benefit.

36. What is Salesforce Lightning?

Salesforce Lightning is a platform that provides tools to every organization to build next-generation UI and UX in Salesforce. Lightning creates a modern productivity-boosting user experience. It is used to create a fast, beautiful, and unique user experience, just like real lightning, so that sales teams can sell their products faster. Lightning Experience uses an open-source Aura framework. It is a completely re-designed framework to create a modern user interface.

37. Why use Batch Apex instead of Normal Apex?

There are various reasons why Batch Apex is better than Normal Apex.

  • A Normal Apex uses 100 records per cycle to execute SOQL queries. Whereas, a Batch Apex does the same in 200 records per cycle. So, it is very fast when the execution of SOQL queries is considered.
  • A Normal Apex can retrieve 50,000 SOQL queries but, in Batch Apex, 50,000,000 SOQL queries can be retrieved.
  • A Normal Apex has a heap size of 6 MB; whereas, a Batch Apex has a heap size of 12 MB.
  • When executing bulk records, Normal Apex classes are more vulnerable to encountering errors as compared to Batch Apex. The latter is normally error-less.

38. How can you call an Apex Class in Salesforce?

Ways to call an Apex class in Salesforce are as follows:

  • From the Visualforce page
  • From Developer Console
  • From JavaScript links
  • By using a trigger
  • From another class
  • From home page components

39. How will you create a many-to-many relationship?

A many-to-many relationship can be created by using a junction object. A Junction object is a custom object that has two Master–Detail relationships.

40. What are the different types of Reports available in Salesforce?

Based on the structural differences, Salesforce has four different types of reports:

Tabular ReportA tabular report displays data in the form of an Excel-like table that provides a list of items with the grand total.
Joined ReportA joined report is a combined report having multiple blocks that show data from different reports, either of the same or of different report types.
Matrix ReportA matrix report works for 2-dimensions and allows to group records row-wise and column-wise.
Summary ReportIn a summary report, the view is in a table form only, but it has more functionalities like grouping rows (only), viewing subtotals, and creating charts.

Related Courses -Learn Online Now!

AWS Developer Training Course

Microsoft Azure Administrator – Associate

Certified Ethical Hacking (CEH) Course 

Microsoft SharePoint Admin
Microsoft SharePoint Developer

Salesforce Certified Platform Admin
Salesforce Certified Platform Developer

sharing is caring

Leave a Reply


ABOUT US

OMNI ACADEMY & CONSULTING is one of the most prestigious Training & Consulting firm, founded in 2010, under MHSG Consulting Group aim to help our customers in transforming their people and business - be more engage with customers through digital transformation. Helping People to Get Valuable Skills and Get Jobs.

Read More

Contact Us

Get your self enrolled for unlimited learning 1000+ Courses, Corporate Group Training, Instructor led Class-Room and ONLINE learning options. Join Now!
  • Head Office: A-2/3 Westland Trade Centre, Shahra-e-Faisal PECHS Karachi 75350 Pakistan Call 0213-455-6664 WhatsApp 0334-318-2845, 0336-7222-191, +92 312 2169325
  • Gulshan Branch: A-242, Sardar Ali Sabri Rd. Block-2, Gulshan-e-Iqbal, Karachi-75300, Call/WhatsApp 0213-498-6664, 0331-3929-217, 0334-1757-521, 0312-2169325
  • ONLINE INQUIRY: Call/WhatsApp +92 312 2169325, 0334-318-2845, Lahore 0333-3808376, Islamabad 0331-3929217, Saudi Arabia 050 2283468
  • DHA Branch: 14-C, Saher Commercial Area, Phase VII, Defence Housing Authority, Karachi-75500 Pakistan. 0213-5344600, 0337-7222-191, 0333-3808-376
  • info@omni-academy.com
  • FREE Support | WhatsApp/Chat/Call : +92 312 2169325
WORKING HOURS

  • Monday10.00am - 7.00pm
  • Tuesday10.00am - 7.00pm
  • Wednesday10.00am - 7.00pm
  • Thursday10.00am - 7.00pm
  • FridayClosed
  • Saturday10.00am - 7.00pm
  • Sunday10.00am - 7.00pm
WhatsApp Us