Salesforce interview questions for experienced/Salesforce Interview Questions and Answers for Freshers & Experienced

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.

Posted Date:- 2021-10-14 08:26:31

When should Apex be used over Workflow rules or Process Builder?

There are many reasons why you should use Apex over declarative automation options, here are a couple of common answers…

>> Workflow rules and Process Builder operations sometimes have feature limitations that can be overcome with Apex. For example, pulling information from an external system.

>> When dealing with certain or large sets of data, Apex can be more efficient than declarative options due to less limitations.

Posted Date:- 2021-10-14 08:25:47

Is there a limit for records?

Salesforce users can see their limit form setup easily by simply clicking administration/Users. From the users section, the users can see their monthly limit and exactly how many records are exported during the month.

Posted Date:- 2021-10-14 08:24:48

What is a static resource in Salesforce?

With Salesforce’s static resource, subscribers can upload zip files, images, jar files, JavaScript, and CSS files that can be referred in a Visualforce page. The optimum size of static resources in Salesforce is 250 MB.

Posted Date:- 2021-10-14 08:24:05

How is SaaS beneficial to Salesforce?

SaaS is subscription-based, so clients can choose not to renew and discontinue using the program at any time without penalty other than not being able to use Salesforce. SaaS is intended to help users avoid heavy initial startup fees and investments. SaaS applications use a simple Internet interface supported by easy integration.

Posted Date:- 2021-10-14 08:23:28

What is Multitenant Architecture in Salesforce?

It is the cloud's fundamental technology to share IT resources securely and cost-efficiently.

Posted Date:- 2021-10-14 08:22:21

When do we use Sandbox?

A Sandbox helps you when you want to test the newly developed application on or VisualForce page. It is not possible to check something in the production environment if do, so it creates a problem for the regular functioning. So, to get out of this problem developers use Sandbox to test the application.

Types of sandboxes available are :

* Developer
* Developer pro
* Partial copy
* Full

Posted Date:- 2021-10-14 08:21:47

What is the difference between public classes and global classes in Salesforce Apex?

A global class is accessible across the Salesforce instance, irrespective of namespaces.
Whereas, public classes are accessible only in the corresponding namespaces.

Posted Date:- 2021-10-14 08:20:49

What is Apex Managed Sharing?

Apex Managed Sharing provides developers with the ability to support an application to share requirements.

This type of sharing is available only with users to modify all data permissions. Only these users can add/change apex-managed sharing.
Apex Managed Sharing uses a Sharing reason (Apex Sharing Reason)

Posted Date:- 2021-10-14 08:19:41

Where we can use Lightning Components?

We can use Lightning components for various purposes, lets see some of them:

To drag-and-drop Components in the Lightning App Builder and Community Builder.
To add more Lightning Components to Lightning Pages.
To add Lightning Components to Lightning Experience Record Pages.
To override Standard Actions.

Posted Date:- 2021-10-14 08:17:59

What can cause data loss in Salesforce?

Data loss in Salesforce can be caused by a number of reasons, including:

* Changing data and date-time.
* Migrating to percent, number, and currency from other data types.
* Changing from the multi-select picklist, checkbox, auto number to other types.
* Altering to multi-select picklist from any type except picklist.
* Changing to auto-number except for text.
* Changing from text-area to e-mail, phone, URL, and text.

Posted Date:- 2021-10-14 08:17:08

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.

Posted Date:- 2021-10-14 08:15:24

What is Object Relationship Overview?

In Salesforce, the object relationship overview links custom object records to standard object records in a related list. This is helpful to track product defects in related customer cases. Salesforce allows users to define different types of relationships by creating custom relationship fields on an object.

Posted Date:- 2021-10-14 08:14:39

Can you describe an example Service process that a company might implement?

Similar to the above questions, it’s important for Salesforce professionals to understand how a customer support organisation works and the different stages they go through to solve a case.

Unlike a Sales process that is split across the Lead & Opportunity objects, Service processes are contained on the case object. Here is an example of a Service process. New > Working > Waiting on Customer > Escalated > Closed.

Posted Date:- 2021-10-14 08:13:38

What is the Salesforce Lightning Experience, and how does it help organisations?

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

Posted Date:- 2021-10-14 08:13:10

Can you explain how Salesforce releases work?

Being a SaaS platform, Salesforce delivers updates to your system automatically. The major releases happen 3 times a year, with some other, much smaller updates being delivered in between.

The major releases are labelled, Spring, Summer & Winter, with the fiscal Salesforce year following the name, e.g. “Salesforce Winter ’22 Release”. Each release will have a huge amount of features and updates included, across most Salesforce products.

It’s important to stay alert around release time. Whilst Salesforce rarely breaks anything whilst updating your Org, it’s important to test everything and ensure that it works as expected.

Posted Date:- 2021-10-14 08:12:39

What is Apex Interface?

The interface is a collection of unimplemented methods. This will specify the signature of the method, types of inputs that we pass the method specify what type is given as an output.

Posted Date:- 2021-10-14 08:11:37

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: A 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.

Posted Date:- 2021-10-14 08:10:45

What is the difference between insert() and database .insert()?

Using the 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 the success of bulk insert operation we will use database .insert.

Posted Date:- 2021-10-14 08:10:15

Is it possible to restrict access to data using sharing rules?

The sharing rules are used only for allowing greater access to records not for restricting.

Posted Date:- 2021-10-14 08:09:31

What is the difference between public and global class in Apex?

Global class is accessible across the Salesforce instance irrespective of namespaces.
Whereas, public classes are accessible only in the corresponding namespaces.

Posted Date:- 2021-10-14 08:09:03

What is an sObject type?

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

For example, Vehicle is a generic type and Car, Motor Bike all are concrete types of Vehicle.
In SFDC, sObject is generic and Account, Opportunity, CustomObject__c are its concrete type.

Posted Date:- 2021-10-14 08:08:19

What is a Visualforce component?

A Visualforce Component is either a predefined component (standard from component library) or a custom component that determines the user interface behavior. For example, if you want to send the text captured from the Visualforce page to an object in Salesforce, then you need to make use of Visualforce components. Example: <apex:detail>

Posted Date:- 2021-10-14 08:07:49

What is the minimum test coverage required 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

Posted Date:- 2021-10-14 08:07:14

What is 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.

Posted Date:- 2021-10-14 08:06:08

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.

Posted Date:- 2021-10-14 08:05:31

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){}

Posted Date:- 2021-10-14 08:05:07

What is the use of “@future” annotation?

Future annotations are used to identify and execute methods asynchronously. If the method is annotated with “@future”, then it will be executed only when Salesforce has the available resources.

For example, you can use it while making an asynchronous web service callout to an external service. Whereas without using the annotation, the web service callout is made from the same thread that is executing the Apex code, and no additional processing will occur until that callout is complete (synchronous processing).

Posted Date:- 2021-10-14 08:04:38

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.

Posted Date:- 2021-10-14 08:03:42

What is the junction object and what is it used for?

Junction objects are mainly used to create a many-to-many relationship in Salesforce. If you consider a recruiting application as an example, you can find a position that is linked to many candidates, and in the same fashion, a candidate can apply for many positions.

Posted Date:- 2021-10-14 08:03:13

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.

Posted Date:- 2021-10-14 08:02:36

How many records can a select query return? How many records can a SOSL query return?

The Governor Limits enforces the following:-

Maximum number of records that can be retrieved by SOQL command: 50,000.

Maximum number of records that can be retrieved by SOSL command: 2,000.

Posted Date:- 2021-10-14 08:01:58

How can you call a controller method from JavaScript?

To call a controller method (Apex function) from JavaScript, you need to use actionfunction.

Look at the below piece of code to understand how a controller method is called using actionfunction.

function JSmethodCallFromAnyAction()

Posted Date:- 2021-10-14 08:01:39

What is the difference between a standard controller and a custom controller?

Standard controller in Apex, inherits all the standard object properties and standard button functionality directly. It contains the same functionality and logic that are used for standard Salesforce pages.

Custom controller is an Apex class that implements all of the logic for a page without leveraging a standard controller. Custom Controllers are associated with Visualforce pages through the controller attribute.

Posted Date:- 2021-10-14 08:01:12

How can you expose an Apex class as a REST WebService in Salesforce?

You can expose your Apex class and methods so that external applications can access your code and your application through the REST architecture. This is done by defining your Apex class with the @RestResource annotation to expose it as a REST resource. You can then use global classes and a WebService callback method.

Invoking a custom Apex REST Web service method always uses system context. Consequently, the current user’s credentials are not used, and any user who has access to these methods can use their full power, regardless of permissions, field-level security, or sharing rules.

Posted Date:- 2021-10-14 08:00:51

How many callouts to external service can be made in a single Apex transaction?

Governor limits will restrict a single Apex transaction to make a maximum of 100 callouts to an HTTP request or an API call.

Posted Date:- 2021-10-14 08:00:14

What is an external ID in Salesforce? Which all field data types can be used as external IDs?

An external ID is a custom field which can be used as a unique identifier in a record. External IDs are mainly used while importing records/ data. When importing records, one among the many fields in those records need to be marked as an external ID (unique identifier).

An important point to note is that only custom fields can be used as External IDs. The fields that can be marked as external IDs are: Text, Number, E-Mail and Auto-Number.

Posted Date:- 2021-10-14 07:57:26

Can two profiles be assigned to one user?

Depending on the profile assigned, users get access to Salesforce. One profile can be assigned to many users. Let’s consider an example scenario where the admin creates a sales profile. Now the admin has to give access to one sales profile to multiple members of the sales team.

But the admin cannot give a user access to more than one profile because sales reps should only have access to the sales profile. So two profiles cannot be assigned to one user.

Posted Date:- 2021-10-14 07:56:38

What can cause data loss in Salesforce?

There are many things that can contribute to the data loss in Salesforce. Which includes :

1. Migrating to number, per cent, and money, from other data types.
2. When you change the date and time
3. Migrating to multi-select picklist from any other type but except picklist.
4. Moving from Checkbox, auto number,multi-select picklist to any other types.
5. Changing text area to phone, URL, email, or text.

Posted Date:- 2021-10-14 07:55:20

List some examples of custom fields?

There are many custom fields available they are Picklist, Currency, Date, Text, Picklist (multi-select), Email, Percent, Number, Phone, Text area, Lookup relationship, Geolocation, Checkbox, Master-Detail relationship, etc..

Posted Date:- 2021-10-14 07:54:44

Explain about object relationship overview?

It creates a link between the custom object and the standard object recorded in a related list. This is helpful to find the product's defects.

Posted Date:- 2021-10-14 07:54:21

What are the examples of non-deterministic formula fields?

Before I mention some of the examples, let me give you an introduction to deterministic and non-deterministic formula fields. Formula fields whose value will be static are referred to as deterministic fields. Whereas, formula fields whose value will be changed dynamically or whose values will have to be calculated on the fly, they are referred to as non-deterministic formula fields. A classic example of that is a formula returning the current date and time.

Some examples of non-deterministic fields in are:

<> Lookup fields
<> Formula fields whose reference spans over other entities
<> Fields having dynamic date functions like:- TODAY() or NOW()

Posted Date:- 2021-10-14 07:53:47

What is the difference between a Role and Profile in Salesforce?

As mentioned in one of the previous Salesforce interview questions, a profile will ultimately control access to which records a user has in a Salesforce org. No user can work on the Salesforce org without being assigned a profile. The Profile is therefore mandatory for every user.

Role however is not mandatory for every user. The primary function of the Role/ Role hierarchy is that it allows higher level users in hierarchy get access to records owned by lower level users in the hierarchy. An example of that is Sales Managers getting access to records owned by Sales Reps while their peers do not get access to it.

Posted Date:- 2021-10-14 07:52:58

What are custom labels in Salesforce? What is the character limit of custom label?

Custom labels are custom text values that can be accessed from Apex classes or Visualforce pages. The values here can be translated into any language supported by Salesforce.
Their benefit is that they enable developers to create multilingual applications which automatically presents information in a user’s native language.

You can create up to 5,000 custom labels for your organization, and they can be up to 1,000 characters in length.

Posted Date:- 2021-10-14 07:50:29

What are the types of custom settings in Salesforce? What is the advantage of using custom settings?

There are two types of custom settings in Salesforce: List Custom Settings and Hierarchy Custom Settings.

List Custom Settings are a type of custom settings that provides a reusable set of static data that can be accessed across your organization irrespective of user/ profile.
Hierarchy Custom Settings are another type of custom settings that uses built-in hierarchical logic for “personalizing” settings for specific profiles or users.

The advantage of using custom settings is that it allows developers to create a custom set of access rules for various users and profiles.

Posted Date:- 2021-10-14 07:49:03

For which criteria in workflow “time dependent workflow action” cannot be created?

Time dependent workflow action cannot be create for: “created, and every time it’s edited”.

Posted Date:- 2021-10-14 07:48:37

Explain skinny table. What are the considerations for skinny table?

Skinny tables in Salesforce are useful in accessing the fields which are frequently used and to avoid joins. This can improve the performance of certain read-only operations such as reports, list views, etc. Skinny tables are highly effective because skinny tables will be in sync with source tables even when the source tables are modified.

You need to contact Salesforce customer support if you want to use skinny tables. You cannot create, access, or modify skinny tables yourself. For example, you need to contact Salesforce to update your skinny table definition if you want to add new fields.

Posted Date:- 2021-10-14 07:48:09

How to handle comma within a field while uploading using Data Loader?

In a Data Loader .CSV, if there is a comma in field content, you will have to enclose the contents within double quotation marks: ” “.

Posted Date:- 2021-10-14 07:47:42

What is fiscal year or economical year in Salesforce?

The fiscal year or economical year is defined as the period of time used for calculating annual financial statements based on starting and ending date of a company’s financial year. In this period of time, whatever the amount of business that Salesforce has done can be considered as fiscal year and depicts the Salesforce revenue.

There are two types of fiscal years in Salesforce. They are:

<> Normal or standard fiscal year: It is a period that allows estimating by following the Gregorian calendar year that has a 12-month structure. Starting of the fiscal year can begin with the very first day of any month you choose belonging to a particular year. For example, for the fiscal year starting in April, the standard fiscal year is used.

<> Custom fiscal year: It is mainly defined for the companies that lay their forecast based on weekly or quarterly financial planning and can also customize the same. For example, you may have 4 quarters with 13 weeks per quarter in a 4-4-5 pattern or 13 periods per year.

Posted Date:- 2021-10-14 07:46:23

What are page layouts related to Salesforce?

* Page layouts are used to control the layout and organization of buttons, fields, Visualforce, custom links, s-controls, and related lists on object record pages.

* They are helpful in organizing user interface pages by determining which fields, related lists, and custom links are required, read-only, and visible for the user.

* We can create many page layouts and apply them to different user groups, with the aim of creating a customized experience. For example, you could have a single account record like ACME Corp., but it displays different information depending on your user profile.

* Here, you can only apply the one-page layout to a single group of users per object, per record type. For example, if you have one record type based on the Accounts object, you can apply only one-page layout per profile.

Posted Date:- 2021-10-14 07:45:41

R4R Team
R4R provides Salesforce Freshers questions and answers (Salesforce Interview Questions and Answers) .The questions on website is done by expert team! Mock Tests and Practice Papers for prepare yourself.. Mock Tests, Practice Papers,Salesforce interview questions for experienced,Salesforce Freshers & Experienced Interview Questions and Answers,Salesforce Objetive choice questions and answers,Salesforce Multiple choice questions and answers,Salesforce objective, Salesforce questions , Salesforce answers,Salesforce MCQs questions and answers R4r provides Python,General knowledge(GK),Computer,PHP,SQL,Java,JSP,Android,CSS,Hibernate,Servlets,Spring etc Interview tips for Freshers and Experienced for Salesforce fresher interview questions ,Salesforce Experienced interview questions,Salesforce fresher interview questions and answers ,Salesforce Experienced interview questions and answers,tricky Salesforce queries for interview pdf,complex Salesforce for practice with answers,Salesforce for practice with answers You can search job and get offer latters by studing .learn in easy ways .