Blog

Blog

Top 50 Salesforce Interview Questions And Answers You Must Prepare In 2023

Salesforce Interview Questions

Salesforce Interview Questions

1) What is Salesforce?

Salesforce is a cloud-based service. It is a customer relationship management (CRM) platform. Salesforce is a software as a Service (SaaS). It helps you to manage customer relationships, integrate with other systems, and build apps. The tool helps you to manage and create a custom solution as per your business requirement.

image

Before Salesforce, companies had their servers for customer relationship management (CRM). They were costly and time taking. They were very hard to use. Feasible solution to this problem is to build an affordable CRM software and delivering it entirely online as a service.

In a few years, there has been a significant surge in cloud computing technologies. Salesforce has an immense impact on the world of computing. Salesforce is developed as the fifth largest software company in the world. It is the top CRM service provider.


2) What is an app in Salesforce?

An app is a collection of tabs that works as a unit to provide functionality. Users can switch between apps in force.com app’s drop-down menu.

A Salesforce application is a container of tabs, processes, and services.

We can create new apps by grouping some standard app, customize existing apps according to our work.

Salesforce provides many standard apps such as call center, marketing, sales, etc.

There are two types of Salesforce application:

  • Custom App
  • Service cloud control

Salesforce create application

Follow the below steps to create a Salesforce app:

Step1: Follow this navigation: Setup-> AppSetup-> create-> apps-> click on ‘new’

Step2: Select custom application radio button-> provide the app name

Step3: Click on the next button

Step4: Select the image from the document object

Step5: Select the objects

Step6: Click on the visible checkbox and save

To add this Salesforce app to any other profiles or tabs. Follow the below steps

Step1: Setup-> Appsetup-> create-> apps->

Step2: Select the app from the list and click on edit

Step3: If we want to change the image, then click on insert an image and take the image from documents.


3) What are objects in Salesforce?

Objects are the database tables in Salesforce. Objects allow storing data specific to the organization in Salesforce.

There are two types of objects in Salesforce:

  • Standard objects
  • Custom objects

Standard objects

Standard objects are such objects that are inbuilt in Salesforce.com.

Example: accounts, contacts, products, leads, opportunities, campaigns, users, contracts, Report, and dashboards, etc.

Custom objects

Custom objects are such objects that are created by us. These objects are user-defined objects. Custom objects store information which is important and unique to our organization.

Custom objects are an integral part of any application. They provide a structure for sharing data.

Custom objects hold the following properties.

  • Custom fields
  • Relationship to other objects
  • Page layouts
  • A custom user interface tab

4) What are user profiles in Salesforce?

In Salesforce, a user profile is a set of permissions and settings that determine what a user can do within the platform. Each user in a Salesforce organization must be assigned a user profile, which defines the user’s level of access to the data and features of the platform.

User profiles can be customized to grant different levels of access to different users. For example, a user profile for a sales manager might have more access to sales data and tools than a user profile for a sales representative.

User profiles can also be used to control which features and functionality are available to different users. For example, a user profile for a customer service representative might include access to the Service component of the platform, while a user profile for a marketing manager might include access to the Marketing component.

Overall, user profiles are an important part of the Salesforce platform, as they help to ensure that users have the right level of access and functionality to do their jobs effectively.

5) Can we assign the same profile to two different users? Is it possible that two profiles can be assigned to the same user?

The profile defines the level of access a user can have in Salesforce.

In Salesforce org, it is possible to assign a single profile to any number of users. For example, we can consider a sales or service team in a company. The entire team has access to the same profile. The admin can create one profile for the whole sales team, which will have access to the leads, campaigns, contacts, and other objects deemed necessary by the company.

In this functionality, many users can be assigned with the same profile. In case the team leader needs access to additional records, then it can be done by assigning permission sets only for those users.

Each user can be assigned only one profile.


6) What is the difference between Force.com and Salesforce.com?

Force.com is a platform as a service (PaaS) offering from Salesforce that allows developers to build custom applications on top of the Salesforce platform. It provides a set of tools and resources, including an application development framework, a database, and a set of APIs, that developers can use to build custom applications that integrate with Salesforce data and functionality.

Salesforce.com, on the other hand, is a customer relationship management (CRM) platform that offers a range of tools for managing customer interactions, sales processes, and support requests. It includes features such as sales automation, customer service and support, marketing automation, and analytics. Salesforce.com is a cloud-based service that can be accessed from any device with an internet connection.

In short, Force.com is a platform for building custom applications on top of Salesforce, while Salesforce.com is a standalone CRM platform that includes a range of tools for managing customer relationships and sales processes.


7) What is the relationship in Salesforce? What are its types?

We can establish a relation between objects in Salesforce. We can associate one object with others.

Example: We have an object party (To store information about the party), and you want to associate it with other objects like people (information of participants) so that you can associate the object party with people. These relationship types also determine how they handle record sharing, required field in page layouts, data deletion capability.

Salesforce supports the following types of relationships that can be established among objects.

  • Master-Detail Relationship
  • Lookup relationship
  • Self-relationship
  • External lookup relationship
  • Indirect lookup relationship
  • Many-to-Many relationship
  • Hierarchical relationship

8) What is Master-detail relationship?

It’s a tightly coupled relationship among Salesforce objects. In the Master-detail relationship, the parent record controls the behavior of the child record regarding visibility and sharing. If a master record gets deleted, then the child records associated with it are also deleted. The security setting of the parent object applies to the child object.

Example:

If we create a Master-detail relationship between the objects party and people. Where a party is a parent object, and people is a child object. Then if we delete party record, all the associated record will also get deleted.

image

When two objects form a Master-detail relationship, we can create a unique type of field over the master object, called Roll-up summary.

A Roll-up summary allows us to calculate values related to child record, such as the number of child record, average, sum, etc., linked to a parent record.


9) What is the lookup relationship?

It’s a loosely coupled relationship among Salesforce objects. In the Lookup relationship, both parent and child have their sharing setting and security controls, which means if a parent record gets deleted, then child records remain in the system.

Let’s see the party and the people objects. For example, the below figure provdes a visual representation of the Lookup relationship between the party and people objects.

image

In this diagram, the party object record has been deleted, but the people record is still available. This relationship between objects is Lookup relationship.


10) What are reports in Salesforce?

Reports are an essential part of any business. Descriptions provide a clear picture of the management.

Reports are used to track the process towards its various tasks, control expenditure, increase revenue. Reports help in trend prediction.

Salesforce.com allows you to generate reports in different styles.

In Salesforce.com, we can create four types of reports:

  • Tabula reports
  • Summary Reports
  • Matrix report
  • Joined report

11) What are some Governor limits in Salesforce?

Governor limits control how much data and how many records you can store in the shared databases because Salesforce is a multi-tenant architecture based. In other words, Salesforce uses a single database to store the data of multiple customers.

Salesforce introduced the concept of the Governor limits to prevent monopolization of the shared resources between users.

Governor limits are the biggest challenge of a Salesforce developer. This is because if the apex code exceeds the limit, then the issue is a runtime exception that can’t be handled. So as a Salesforce developer, you should be very careful while developing application.

Here is a list of some significant Governor limits.

  • Pre-transaction Apex limits
  • Static Apex limits
  • Size-Specific Apex limits
  • Miscellaneous Apex limits
  • Force.com Platform Apex Limits
  • Email limits
  • Push Notification limits

12) What are the different ways to store various types of records in Salesforce?

In Salesforce, there are several different ways to store records, depending on the type of data you need to store and how you want to access and manage it. Some of the options for storing records in Salesforce include:

  1. Standard objects: Salesforce includes a set of standard objects, such as accounts, contacts, leads, and opportunities, that are designed to store specific types of data. Each standard object includes a set of predefined fields that you can use to store data.
  2. Custom objects: If you need to store data that doesn’t fit into a standard object, you can create a custom object to store it. Custom objects are similar to standard objects, but you can customize them to fit your specific needs.
  3. Custom fields: You can add custom fields to standard or custom objects to store additional data. Custom fields can be used to store data that isn’t covered by the predefined fields of an object.
  4. External data sources: You can use Salesforce to access and store data from external sources, such as databases or other cloud-based platforms, using tools like the Salesforce Connect feature.
  5. Files: You can use Salesforce to store and manage files, such as documents, images, or videos, using tools like the Salesforce Files feature.
  6. Big objects: If you have a large amount of data that you need to store in Salesforce, you can use big objects to store it. Big objects are optimized for storing large volumes of data and are designed to handle up to billions of records.

13) What is the fiscal year in Salesforce?

Starting and ending date of a company financial year is considered as Fiscal year. The fiscal year is used to calculate annual financial statements in business and other organizations. Salesforce has two types of the fiscal year:

Standard fiscal year

Salesforce provides a calendar by default as the standard fiscal year. It’s a Gregorian calendar. But it is not necessary that all the organizations use the same calendar, some organizations use different calendars and need to change the fiscal year start month. It can be defined whether the fiscal year is based on the start or end of the selected month.

To set up a standard fiscal year navigate to

Setup-> Administer->company profile-> Fiscal year

Select the option of Standard Fiscal year

Custom fiscal year

When the standard fiscal year does not meet the requirements of the organization, then Custom fiscal year is used. To use the custom fiscal year, the administrator has to enable it. The administrator must define the fiscal year to fit the company’s calendar.

To set up the company’s fiscal year, navigate to

  • Setup-> Administer-> company profile-> Fiscal year  

Select the option of Custom Fiscal year

Select the checkbox next to the terms statement

Click on Enable custom fiscal year

Click on OK


14) How many Master-detail relationship fields can be created in an object?

In Salesforce, you can create up to two master-detail relationship fields per object. A master-detail relationship field is a type of field that links a child object to a parent object. The child object is called the “detail” object, and the parent object is called the “master” object. The relationship is established by creating a master-detail field on the child object that references the parent object.

For example, you might create a master-detail relationship between a “cases” object and a “contacts” object, with the “cases” object as the detail object and the “contacts” object as the master object. In this example, each case would be linked to a specific contact, and the contact would be the master record for the case.

It’s worth noting that you can only create a master-detail relationship between two objects if the detail object does not already have a master-detail relationship with another object. Additionally, you cannot change an object’s master-detail relationship once it has been established.


15) How many Lookup relationship fields can be created in an object?

In Salesforce, you can create up to two master-detail relationship fields per object. A master-detail relationship field is a type of field that links a child object to a parent object. The child object is called the “detail” object, and the parent object is called the “master” object. The relationship is established by creating a master-detail field on the child object that references the parent object.

For example, you might create a master-detail relationship between a “cases” object and a “contacts” object, with the “cases” object as the detail object and the “contacts” object as the master object. In this example, each case would be linked to a specific contact, and the contact would be the master record for the case.

It’s worth noting that you can only create a master-detail relationship between two objects if the detail object does not already have a master-detail relationship with another object. Additionally, you cannot change an object’s master-detail relationship once it has been established.


16) What are the benefits of the Salesforce?

Salesforce is the largest and leading cloud platform provider in the world. Their customer relationship manager (CRM) is one of the most beneficial software.

We get the following benefits by using CRM

  • Improved understanding of the organization
  • Enhanced communication b/w client and service provider
  • We can facilitate the customer better by understanding them.
  • Salesforce automates the repeated tasks.
  • Salesforce reduces cost and cycle time.
  • Salesforce improves the efficiency of teams.

17) What is a sandbox org? What are the different types of sandboxes in Salesforce?

A sandbox is a copy of the production org/environment. It is used for testing and development purpose. It is beneficial because it allows for the development of Apex programming without disturbing the production environment.

Sandbox can be used when we want to test a newly developed force.com application. We can develop and test it in the sandbox org, there is no need to do it directly in production.

There are four types of sandboxes are in Salesforce.com:


18) What is Apex in Salesforce?

Apex is a strongly typed object-oriented programming language. It allows developers to execute flow and transaction control statements on Salesforce server in combination with calls to the API. Its syntax looks like Java. It uses syntax and acts as a database stored procedure. Apex allows the developer to add business logic to system events like button clicks, related record update, and Visualforce pages.


19) What is Visualforce?

Visualforce is a framework for the Force.com platform. It is a component based markup language. It allows defining user interface component in Salesforce. Page layout feature will enable you to configure the user interface easily, but by using Visualforce pages, you can customize your user interface.


20) Can you edit an apex trigger/ apex class in a production environment? Can you edit a Visualforce page in a production environment?

No, we can’t edit apex classes and triggers directly in the production environment.

To edit an apex trigger/ class, first, it needs to be done in Developer edition or testing org or Sandbox org. Then, we can deploy it in production. A user that has apex permission must deploy the triggers and classes using deployment tools.

Though, Visualforce page can be created and edited in both production and sandbox.


21) Why are Visualforce pages served from a different domain?

Visualforce pages are served from a different domain to block cross-site scripting and improve security standard.


22) What are the static and dynamic dashboards? Can dynamic dashboards be scheduled?

Static dashboards are the ordinary dashboards that will be visible to any other user who has made a report out of his data. Example; sales managers/ marketing manager would be able to see on his Salesforce Org. Moreover, a normal dashboard that shows the data for a single user.

Dynamic dashboards display information which is customized for a specific user. Let’s consider the above example. In case the sales manager wants to view the report of a particular team member, then he can use dynamic dashboards.

We can use dynamic dashboards when we want to show user-specific data such as a particular user’s quota, sales, productivity, meetings, etc.

We can use a normal/ static dashboard to show regional and organization-wide data to a set of users, such as sale in a region, or team performance, etc.


23) Which fields are automatically indexed in Salesforce?

In Salesforce, certain fields are automatically indexed to improve the performance of search queries and reports. The specific fields that are indexed depend on the data type of the field and the object it belongs to.

Some of the field types that are automatically indexed in Salesforce include:

  • Text fields: Text fields with a length of 255 characters or less are automatically indexed in Salesforce. This includes standard text fields, such as the “Name” field on the “Accounts” object, and custom text fields.
  • Number fields: Number fields are automatically indexed in Salesforce, regardless of the data type (integer, decimal, etc.). This includes standard number fields, such as the “Number of Employees” field on the “Accounts” object, and custom number fields.
  • Date and date/time fields: Date and date/time fields are automatically indexed in Salesforce. This includes standard date and date/time fields, such as the “Close Date” field on the “Opportunities” object, and custom date and date/time fields.
  • Picklist fields: Picklist fields are automatically indexed in Salesforce. This includes standard picklist fields, such as the “Industry” field on the “Accounts” object, and custom picklist fields.

24) What are skinny tables?

Salesforce can create skinny tables to avoid join and contain frequently used fields. Thin tables improve the performance of read-only operations. Skinny tables are set aside in sync with their source tables when the source table is modified.

Contact Salesforce customer support to use skinny tables. These tables are created and used automatically where appropriate. We can’t create, modify, or thin access tables.

Considerations for skinny tables

  • It can contain a maximum of 100 columns.
  • Tables cannot contain fields from other objects.

25) What is an Audit trail in Salesforce?

The Audit trail tracks the recent setup changes that other administrators and you have made to your organization. This is useful for organizations that have more than one administrator.

It can track the last twenty changes made to your organization. It displays

  • The date and time of the change.
  • Who made it (administrator name)
  • What was before the change

26) Can we delete a user in Salesforce?

Yes, it is possible to delete a user in Salesforce. However, it is important to be careful when deleting users, as deleting a user can have unintended consequences.

To delete a user in Salesforce, follow these steps:

  1. Navigate to the “Users” tab in the Salesforce setup menu.
  2. Click on the name of the user you want to delete.
  3. On the user’s detail page, click the “Delete” button.
  4. In the confirmation window that appears, select a reason for deleting the user and click “Delete”.

Keep in mind that deleting a user will permanently remove the user’s account, as well as any data associated with the account, such as records owned by the user and activities performed by the user. Therefore, it is important to consider the impact of deleting a user before proceeding. If you just want to deactivate a user instead of deleting their account, you can use the “Deactivate” button on the user’s detail page. This will disable the user’s account, but it will not delete the user or their data.

.


27) Can we change the license when we create a profile?

Yes, you can change the license type when you create a profile in Salesforce. A license in Salesforce determines the features and permissions that are available to a user. When you create a new profile, you can select the appropriate license type for the profile based on the features and permissions that you want to grant to users who will be assigned to the profile.

To change the license type when creating a profile in Salesforce, follow these steps:

  1. Navigate to the “Profiles” tab in the Salesforce setup menu.
  2. Click the “New” button to create a new profile.
  3. In the “Profile Name” field, enter a name for the new profile.
  4. In the “User License” dropdown menu, select the appropriate license type for the profile.
  5. Click “Save” to create the new profile.

Keep in mind that you can only select a license type that is compatible with the edition of Salesforce that you are using. For example, if you are using Salesforce Enterprise edition, you will not be able to select a license type that is only available in Salesforce Professional edition. Additionally, some license types may have additional fees associated with them.


28) What is Deployment in Salesforce?

In SFDC (Salesforce development cycle), you have to develop code in Sandbox, and then you might need to deploy this to another sandbox or production environment this is called deployment.

In other words, the movement of metadata from one organization to another organization is called deployment. The main reason behind deployment is that you cannot develop apex in your Salesforce production.


29) What are the different ways of deployment in Salesforce?

Deployment can be done in the following ways.

  • Change Sets
  • Eclipse with Force.com IDE
  • Force.com Migration Tool – ANT/Java based
  • Salesforce Package

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

The standard controller automatically contains all the standard object properties and standard button functionality. It contains all the functionalities and logic as used in standard Salesforce pages.

Custom controllers are like an Apex class that implements all the logic of a page without taking an advantage of a standard controller. Custom controllers are related with Visualforce page through the controller attribute.


Salesforce Interview Questions

31) What is cloud computing?

Cloud computing is the provision of computational services such as storage, servers, database, software, networking, analytics, intelligence, and moreover the internet (cloud). It brings the organization faster innovation, flexibility in allocating resources, economies of scale. It reduces the costs of organizations that are associated with the task of storage.

Cloud-based storage makes it possible to save the files in a remote database instead of proprietary hard drive or local storage device. It provides access to the data and the software programs to run it till an electronic accessory has access to the web.

Cloud services can be both private and public. Private cloud services provide services to a certain number of people. On the other hand, public cloud services offer their services over the internet which is chargeable. These services are a group of networks that supply hosted services. Cloud services also provide a hybrid option, which combines both private and public services.


32) What are the types of Cloud services?

Based on services, cloud services provide users with a series of functionalities like

  • Email
  • Backup, Storage, and data retrieval
  • Creating and testing app
  • Data Analyzing
  • Audio and Video streaming

Cloud computing is still a new service, but it comes in a trend in a very short time. Nowadays, government agencies, small businesses, non-profit agencies, and individual consumers are using cloud computing.

Cloud computing is not a single part of technology like a microchip. It’s a primary combination of three services software as a service (SaaS)infrastructure as a service (IaaS), and platform as a service (PaaS)


33) How many certifications are available in Salesforce?

There are eight kinds of certifications available in Salesforce which cater to different stages:

  • Administrator certifications
  • Developer Certifications
  • Architects Certifications
  • App Builders Certifications
  • Implementation Experts or Consultant Certification.
  • Marketers Certification
  • Pardot Experts Certifications
  • CPQ Certification

34) What is Salesforce environment?

Environment or organization is the workspace for a particular user.

For Example, if you sign up to a Facebook account, you will be provided a unique username and password. The same approach, if you subscribe to the Force.com cloud computing, you will be provided a valid credential to work in your specified cloud computing area of the environment or Org.

The Salesforce environment provides accessibility to develop, test the apps, and can be used for production also. This environment can be customized according to your requirements such as Apex code, workflow, Custom DB attributes, and objects.


35) How to check for user License in Salesforce work environment?

To check the Salesforce license, open the SF workspace and navigate as follows:

  • Setup-> Monitor->System Overview  

And go to Data Storage section, here you can see the user license in the highlighted area.

If you want to check for all user licenses, then select the “Show All” option.


36) What is MVC architecture in Visualforce?

MVC is a widely used architecture design pattern which divides the design component in three phases Model, View, Controller.

image

In Visualforce MVC, architecture can be implemented by using the standard as well as custom objects. Also, we can use three newly introduced Salesforce objects, pages, components, and controllers.

These pages work like JSP pages, give the user-friendly presentation. Each view has an associated controller. Developers can write their controller using Apex programming language or can use a standard controller. VF has some auto-generated controller to interact with databases.


37) When should apex be used?

Apex can be used in different scenarios, such as

  • To create Email services
  • To create web services
  • To perform complex validation over multiple objects
  • To create complex business processes that are not supported by the workflow.
  • To create custom transaction logic
  • To attach custom logic to another operation

38) How does Apex work?

All Apex programs run on-demand exclusively on force.com platform.

First, the application server compiles the apex code into an abstract set of instructions that can be understood by apex runtime interpreter.

After the compilation, the compiled code is stored to metadata.

And now, when the end users initiate the execution of apex by clicking the button or visual force page, the application servers retrieve the compiled instructions from the metadata and forward them to runtime interpreter before returning the result.


39) What are the types of SOql statements in Salesforce?

Salesforce Object Query Language is used to perform database operations in Salesforce.com. It is similar to the select statement in the widely used Structured Query Language (SQL), but it is designed especially for Salesforce data.

With the use of SOql, we can create a simple but powerful query string in the following environments:

  • In the query call () of the query String parameter.
  • In apex statements
  • In Visualforce controllers and getters method
  • In the schema explorer of Force.com IDE

40) What could be the reason to lose data in Salesforce?

Few reasons to loss data in Salesforce are as follows:

  • By changing date and date-time
  • By migrating number, percent, currency from another datatype.
  • By changing from the multi-select picklist, checkbox, auto number to other types.
  • By altering the multi-select picklist from any type except picklist
  • By changing to auto number except for the text
  • By switching from text area to email, URL, phone, and text.

41) What is Workflow?

Workflow is a feature in Salesforce that allows you to automate business processes by defining rules that trigger actions based on specified criteria. Workflow rules can be used to send emails, create tasks, update field values, or trigger other actions when certain conditions are met.

For example, you might create a workflow rule that sends an email to a customer whenever a case is closed, or that updates the value of a field when a record is created or modified. Workflow rules can be used to automate a wide range of business processes, such as lead management, contract approval, and customer support.

Workflow rules are created in the Salesforce setup menu and are triggered by changes to records in Salesforce. When a record is created or modified, Salesforce checks the record against all applicable workflow rules to see if any of the rules’ criteria are met. If a rule’s criteria are met, the actions defined in the rule are triggered.

Workflow rules are an important tool for automating business processes in Salesforce and can help you save time and improve efficiency.


42) What is the difference between WhoID and WhatId?

In Salesforce, the WhoID and WhatID fields are used to link records in related objects. The WhoID field is used to link a record to a person or group, such as a contact or lead, while the WhatID field is used to link a record to a non-human object, such as an account, opportunity, or custom object.

For example, you might use the WhoID field to link an event record to a specific contact, while you might use the WhatID field to link the event record to a specific account.

The WhoID and WhatID fields are commonly used in conjunction with each other, as many business processes involve both people and non-human objects. For example, you might create a task that is linked to both a contact (using the WhoID field) and an opportunity (using the WhatID field).

It’s worth noting that the WhoID and WhatID fields are not required fields and can be left blank if they are not applicable to a given record. Additionally, the specific objects that can be linked using the WhoID and WhatID fields depend on the object you are working with and the relationships that have been established between objects in your Salesforce instance.


43) What is Data Skew in Salesforce?

When a maximum number of child records (more than 10k) are connected to one parent record that situation is called data skew in Salesforce.

Data skew can be three types

  • Account data skew
  • Ownership skew
  • Lookup skew

44) What is collection in Apex? List out all different kinds of collections supported by Salesforce?

Collections in Apex are variables that are used to store multiple data records. As there is a limitation on the number of records to be retrieved per transaction, we can use the collection variable to retrieve records.

There are three types of collections in Salesforce.

  • List
  • Maps
  • Sets

45) What are static Resources?

In Salesforce, static resources are files that can be stored and accessed within the platform. Static resources can include files such as images, CSS stylesheets, JavaScript libraries, or other types of content that you want to make available to users or incorporate into your Salesforce applications.

Static resources are stored in Salesforce as binary data and are accessed using a URL that is unique to the static resource. You can create static resources in Salesforce by uploading the desired files to the platform, and you can then access the static resources using the URL provided by Salesforce.

Static resources are useful for a variety of purposes, such as storing and using custom images or logos in your Salesforce applications, or including custom CSS styles or JavaScript libraries in your pages. They can help you improve the appearance and functionality of your Salesforce applications and make it easier to manage and maintain your content.


46) What is the difference between Action support and Action function?

To understand the difference between Action support and Action function, let’s understand their functionalities:

Both Action support and action function are used to call a controller method via an Ajax request.

The difference between them is as follows:

  • Action function can call a controller method from JavaScript.
  • Action function provides Ajax that supports another visualforce component and then call the controller method.
  • Action function cannot support Ajax to another component. But from a particular component which supports Ajax (onclick, onblur, etc.) action function can be called to the controller method.

47) How many types of email templates can be created in Salesforce?

Different types of email templates can be created In Salesforce. Some of them are listed below.

HTML with letterhead

People who are having “Edit HTML Templates” permissions can create this template based on the letterhead.

Custom HTML

People who are having “Edit HTML Templates” permissions can create this template without any letterhead.

Visualforce

Only the administrator and developer can create this template. It provides some advanced functionalities like merging data from multiple records is available only in this template.


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

If there is a comma in field content, you will have to enclose the contents within double quotation mark;” “.


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

In Salesforce, an Apex transaction is a unit of work that is executed as a single operation. Apex transactions can include a variety of operations, such as database queries, DML operations, and callouts to external services.

Apex transactions have a limit on the number of callouts that can be made to external services within a single transaction. Specifically, the limit is 10 callouts per Apex transaction. This means that you can make up to 10 callouts to external services within a single Apex transaction, but you cannot make more than 10 callouts.

If you need to make more than 10 callouts to external services within a single Apex transaction, you can use the “Queueable Apex” feature to create a queue of callouts that can be processed asynchronously. Queueable Apex allows you to execute multiple callouts over a longer period of time, allowing you to perform more complex operations that involve multiple callouts to external services.

It’s worth noting that the limit on callouts per Apex transaction applies to both synchronous and asynchronous callouts. Additionally, the limit is cumulative across all callouts made within a single Apex transaction, regardless of whether the callouts are made directly or through Queueable Apex.


50) What is pagination in salesforce? How can we implement it in Visualforce?

Pagination is a technique to display a large number of records and displaying the records on multiple pages. We use pagination instead of controlling the number of records displayed on each page.

By default, a list controller shows 20 pages in a page. To customize it, we use a controller extension to set the Page Size.

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
Click outside to hide the comparison bar
Compare

Subscribe to Newsletter

Stay ahead of the rapidly evolving world of technology with our news letters. Subscribe now!