Interview questions on salesforce developer

Interview questions on salesforce developer

1. What does Salesforce do?

Salesforce provides CRM software and cloud-based solutions that help enterprises to connect better with their customers. It supports businesses to manage their customer’s data and track their activities efficiently. Interview questions on salesforce developer 2022

2. What are the Salesforce subsidiaries?

The following are the major subsidiaries of Salesforce:

  • Tableau 
  • Pardot
  • Heroku
  • Mulesoft
  • Demandware Inc
  • SalesforceIQ

3. What is meant by an Object in Salesforce?

Objects in Salesforce are used as database tables that are used to store information about an organization. We have two types of objects in salesforce, they are.

Standard Object: These are the objects provided by the salesforce, which include contacts, accounts, opportunities, leads, cases, campaigns, products, contracts, dashboards, etc.

Custom Object: This includes the modifications made to the Salesforce by users. It stores the essential and unique information of an organization. Custom Object includes page layouts, relationships to other objects, custom user interface tab, custom fields, etc.

4. What is meant by App in Salesforce?

An App in Salesforce.com is a container that holds various things such as a logo, name, and a set of required tabs.  It is also called a group of tabs that work together to prove the functionality that you are looking for.

In Salesforce, you can customize apps to match your requirements, or you can build new applications by combining custom and standard tabs.

5. What is a profile? Can two users have the same profile?

The profile is defined as a collection of rules and procedures a person needs to follow to access particular records. There are multiple profiles available in Salesforce. For example, a sales profile can have access to leads, opportunities, contacts, campaigns, etc.

As far as the second question is considered, the answer would be yes. The people who work in one department have the same profile. So the people who work in a particular department would be assigned the same profiles.

As we have seen in the sales profile, many people work under it and every person who works under is assigned the same profile. Hence any number of people can have the same profile.

6. Explain the difference between role and profile?

Role: In Salesforce Role is meant to increase the data visibility to a particular user. It can be done by sharing rules or by building a role hierarchy. Using roles, you can control the ac

Profile: Unlike the roles profile is mandatory for all, and it stays at the object level. It is treated as a building pillar of an organization.

7. Explain the Salesforce dashboard?

In Salesforce we use dashboards to represent the data in a pictorial format. Salesforce dashboard is capable of displaying 20 reports at a time.

8. What is SOAP?

A protocol that defines a uniform way of passing XML-encoded data. SOAP Stands for Simple Object Access Protocol.

9. What is a Time Trigger?

The computer system executes one or more tasks according to the set of rules and scheduled tasks.

10. What is Trigger in Salesforce?  

The trigger is defined as an Apex code that executes before or after the following functions such as insert, update, delete, etc. trigger enables to perform custom actions before and after modifications to the records of Salesforce. 

Salesforce Intermediate Interview Questions

11. How many records can be shown in matrix, tabular & summary reports?

We can create up to 2k records in Matrix, Tabular & Summary Reports.

12. Is the Roll-Up Summary field is only possible in the Master-detail relationship?

 Yes, it is possible in a master-detail relationship.

13. How many Master-detail relationship fields can be created in an object?

A maximum of two MDR fields can be created in an object.

14. How many LR(lookup relationship) fields can be created in an object?

Maximum 40 Lookup relationship fields can be created in an object.

15. What are the different ways to store various types of records in Salesforce? 

We have five different ways in Salesforce to store various types of records such as images, files, and documents.  

They are 

  • Attachments 
  • Google drive 
  • Chatter Files 
  • Libraries 
  • Attachments.

Interview questions on salesforce developer 2022

16. What is the main difference between data table vs page block table tags?

The differences between the Data table and Page block

Page block:

  • It defines inside the page block station or page block
  • Design the visual pages using style sheets
  • The required attribute is “value”
  • Automatically it will display Column Headers

DataTable:

  • No need to mention it inside the page block station or page block
  • No required value.
  • The data will be displayed using custom style sheets.
  • we need to specify column headers explicitly. 

17. How Does Apex Work?

All Apex programs run entirely On-Demand on the Force.com Platform.

  • First, the platform application server compiles the code into an abstract set of instructions that can be understood by the Apex runtime interpreters.
  • The compiled code is stored in metadata.

When the end-users trigger the execution of Apex by clicking a button or the VisualForce page the application servers retrieve the compiled instructions from the metadata and send them to the runtime interpreter before returning the result.

18. What is Apex in Salesforce?

Apex is a strongly typed object-oriented programming language.

It allows the developer to execute flows and transaction control statements.

Apex enables developers to add business logic to most system events like button clicks related to record updates and VisualForce pages.

19. What are the ways to call the Apex class? 

Below mentioned are the ways in Salesforce to call Apex class. 

  • From another class 
  • From developer console 
  • From JavaScript links
  • From home page components   
  • By using trigger 
  • From VisualForce page

20. What is the Apex Trigger in Salesforce?

The trigger is an Apex Code that executes before or after. The following types of DML Operations:

  • Insert
  • Update
  • Delete
  • Merge
  • Upsert
  • Undelete

21. What is meant by Apex transaction?

An Apex transaction represents a group of operations that are needed to be executed at once.  It includes the Data Manipulation Language (DML) and is responsible for querying records. The DML operations in a transaction either succeed or if anything goes wrong or occurs even with a single record could result in a rollback of the entire transaction.

22. What are The Types of Apex Triggers in Salesforce?

Triggers are divided into 2 types

  1. Before Triggers
  2. After Triggers

Before Triggers: Before Triggers can be used to update or validate the values of a record before they are saved to the database.

After Triggers: After Triggers Before Triggers can be used to access field values of the records that are stored in the database and use this value to make changes in other records.

Interview questions on salesforce developer 2022

23. What is a Declarative Approach?

Working on a project without code.

24. What is the Customisation / non Declarative approach?

Working on a project with code.

25. If one wants to actually compare the variable name in a query what operator should be used?

=: is the operator used to compare.

26. When one wants to pass the collection to the query instead of passing one value which keyword helps us?

IN - keyword.

27. What are the benefits we get by writing controllers?

We get Logic & Data.

28. Will Visualforce still support the merge fields usage like S-control?

Yes. Just like S-Controls. Visualforce pages support embedded merge fields.

Interview questions on salesforce developer

Salesforce Scenario Based Interview Questions

29. As things are time taking client wants a report wherein a single screen, without doing anything, can see SALE PER COUNTRY? And in another report, sales per country per mobile brand.

This can be viewed in the Summary Report.

30. As a client wants to motivate sales reps to make more efforts, they are going to analyze the sale done by every sales report and reward them. They want a report where they can see country-wise sell AlSO IN the SAME REPORT, sales rep wise to sell. So they can also see in which country how the sale is & they want this analysis to be separate but in the SAME REPORT.

This can be viewed in the Matrix Report.

31. The client wants to see data from mobile sell DB and Home Appliance sell DB together to take the decision of the next financial year’s planning. Also, the client wants to group the sell, discount-related columns grouped together?

They can see all the required data by using the Joined Report.

32. When two objects are connected with each other using r/s, then on the secondary record the relationship will be shown using the field. On the primary record, the relationship will be shown using a related list.

Lookup R/S:

  1. It is used to connect 2 or more objects with each other as per the business requirement.
  2. It works on standard objects and custom objects.
  3. It is so simple to type.
  4. It helps to loosely connect 2 objects.
  5. It is used whenever we don’t have much strong dependency between 2 objects.

Salesforce Developer Interview Questions

Here is the list of Salesforce interview questions and answers Interview questions on salesforce developer :

1) What is Apex test coverage? 

To assure that our code satisfies particular standards, Apex test coverage displays to you how many lines of code in our classes or triggers have been tested by the tested methods. Test coverage percentage is the result of the number of the covered lines divided by the sum of uncovered lines and covered lines. To deploy to production, we need a minimum of 75% test coverage.

2) Explain Lightning Message Service(LMS)?

Lightning message service is a distinctive salesforce feature that allows interaction between Aura, Lightning Web Components, and Visualforce over the same lightning page. We can use the Lightning message service in Lightning Experience only.

3) Define OAuth?

OAuth is a standard for access delegation. Generally, we use it as a method for granting the applications or websites access to their data over other websites, yet without providing them with the passwords. 

4) Explain Connected App?

Connected App integrates the salesforce through APIs, and Connected Apps utilize OAuth, SAML for authenticating, providing sign-on, and providing tokens for using the Salesforce APIs.

Besides OAuth capabilities, connected apps eagle salesforce admins to establish different security policies and possess external control to utilize similar apps.

Do you want to build effective applications for Salesforce, then join our Salesforce Developer Training to get a best Training.

5) What is the Significance of Outbound Message?

Outbound Message is an automation function that can shoot from the workflow rule. We can send the message to explicit web services that include web services, which start other processes in explicit systems.

6) What are the uses of External ID fields?

We can define specific fields as an External ID on the object. We can use these External ID fields for balancing the data from explicit systems with a distinct reference ID. 

For instance, if we have to balance the data from the explicit accounting system with the Salesforce Accounts, we have to promptly use an external ID field to refer to the unique ID of the accounting system in place of the Salesforce ID.

7) How can we create partial page refreshes?

First, we have to define the page section that is going to be refreshed, and then we have to define the event that leads to refreshing. The method changes if the area being refreshed is similar to the one managing the event. It also relies on if we are processing on the server or if we have to change the user interface.

Interview questions on salesforce developer

8) How can we invoke the javascript controller action by using a component markup?

By using the action provider, we can invoke the javascript controller action through a component markup

9) What are component and application events?

Application events

By using any component, we can fire the application events, and we can manage them. Application events do not need any relationship among the components; however, these components should be a part of an application.

Component events

Child components fire the component events, and Parent components handle the component events. We use component events when we have to send a value from the child component to the parent component.

10) What is Pagination, and How can we achieve it?

For example, if we have to display 100 records over the page.

  • First: Display the first ten records.
  • Previous: Display the previous ten records.
  • Next: Display the following ten records.
  • Last: Display the previous ten records.

We can perform the above process through Pagination. We can achieve pagination through the following ways:

Through StandardSetController
Through Offset and Limit keywords in SOQL Query

11) How do we display error messages on the VisualForce Page?

To display error messages on the VisualForce Page, we must use:

<apex:pageMessages></apex:pageMessages>

In Apex class, we must use:

ApexPages.addMessage(new ApexPages.Message(ApexPages.severity.Error, ‘Error Message’));

12) What are the differences between Custom Objects and Custom Settings?

Custom ObjectsCustom Settings
Custom Objects store the data in the database.Custom settings store the data in the Application Cache memory.
Custom objects have to use SQL queries for fetching the records from the database.Do not need to use SQL queries for fetching the records.
In custom objects, all data types exist.In Custom settings, only confined data types exist when compared to custom objects
On Custom objects, we can create apex triggers and validation rules.On List Custom settings, we cannot create apex triggers and validation rules
We can create a tab for custom objects.We cannot create a tab for custom settings

13) Can we customize the Apex in a production organization?

We cannot customize Apex in the production organization. We must change and deploy through a sandbox and satisfy test coverage requirements.

14)  Can you give an example of Salesforce API and its importance?

Salesforce has different APIs that allow us to communicate with the system in various ways:

REST API: REST API will enable us to integrate with the salesforce applications through HTTP methods in either JSON or XML formats. 

Bulk: Bulk API gives us programmatic access that allows us to load the data into our salesforce enterprise rapidly.

Streaming: We can use Streaming API for receiving the notification for the changes to the salesforce data that equal the SOQL query we define. Streaming API is functional when we have to push the notification from server to client according to the criteria we define.  

15) Explain Bucket Fields?

Bucket Fields classify the records of the salesforce reports without any custom field or formula; Bucket fields are available only in the reports. When we create a bucket column, then various classifications of the group report values.

16) Differentiate isNull and isBlack?

We use isBlack() for the text fields. Since text fields cannot be NULL, even though nothing is given as a value, ISNULL() function fetches only empty values. If we use ISNULL() with a text field, then it returns false.

17) How does Salesforce implement Sales Tracking?

Salesforce records data on the details like customer details, sales numbers, customer served, repeat customers and use these records for creating detailed charts, dashboards, and reports. In this way, it tracks the sales of our organization.

Interview questions on salesforce developer

18)  What is the limit of the Data.com records that we can add to Salesforce?

In the user section of Data.com, we have to discover our name to see our monthly limit. It will provide details like how many records we can export or add for this month. The user enters setup and types the user in the Find box and chooses prospector users.   

19) Explain the methods of the Batch Apex Class?

The batch apex class deploys the database batchable interface with the three methods as follows:

Start: We use the start method at the beginning of the batch apex job. We use it for collecting the objects or records, for passing them to the interface for execution. It returns a DatabaseQueryLocator object that comprises objects or the records sent to the job.

Finish: We call this method once we finish the batch processing. We use this method to send confirmation emails or to execute the post-processing operations. 

Execute: We use this method for every batch of the records that are sent to the method. We use this method for data processing. This method does the following:

  • subjects records list
  • Reference to the DatabaseBatcheable context.

20) What are the different types of Bindings?

Following are the different types of bindings:

  • Action Bindings: Action Bindings refer to action methods in the controller.
  • Data Bindings: Data Bindings refer to the data sets in the controller.
  • Component Bindings: Component Bindings refers to Visualforce components.

21)  Can we write Setter and Getter methods in Salesforce?

Yes, we use a getter method for returning the values for a controller. Each value computed by the controller and shown on the page should have a getter method.
 
On the other way, we use the setter method to pass the user-defined values from the page markup to the controller. In the controller, we execute the setter method automatically.

22) Explain Developer Console?

The developer console is an incorporated development tool that has a collection of tools. We use these tools for debugging, creating, and testing the applications in salesforce.org.

23) Explain packages and different kinds of packages?

The package is a collection of the components list or associated applications. Following are the kinds of packages:

  • Managed
  • Unmanaged

We use managed packages for distributing and selling the applications to the clients. Developers sell user-friendly applications and licenses by using AppExchange for managed packages. These are entirely updatable in the event of continuous upgrades; we perform the removal of fields or objects.

24) What are the ways to implement the metadata in Salesforce?

Following are the ways to implement metadata in the Salesforce:

  • By using Change Sets
  • Eclipse with Force.com IDE
  • Salesforce package
  • Through Migration tools

25) Explain reRender Attribute Tag?

The reRender attribute defines an elements list that we can update dynamically through the AJAX library of the Salesforce. We do not need the entire page to refresh. Only a part of the page detected by the components is named in the “.rerender” attribute.

26) How can we display the Chatter Feed Record?

By using the <chatter: feed> component, we can display the chatter feed.

Example:

<apex:page>
<chatter: feed entityId=”{!$User.Id}”/>
</apex:page>  

27) Explain the Blob variable?

Blob variable is the variable that is intended to gather binary data. tostring() converts the blob back into the string.

string string1='test string';
Blob blob1 = Blob.valueof(myString);
String String2 = myBlob.toString();
System.debug(String2);

Learn more:
Salesforce developer demand in India
Salesforce developer training with placement
Interview questions on salesforce developer

Leave a Reply

X
WhatsApp chat