As the world is moving towards a digital-centric future, Salesforce professionals will be in high demand since they are crucial to the success of companies using the Salesforce platform. Salesforce Administrators and Developers are developing custom applications, automating business processes, and improving customer engagement. Since enterprises continue to move to the more digital-centric approach, the requirement for Salesforce professionals will increase. Thus, we have prepared these Salesforce interview questions to help you learn the questions and concepts to crack the interviews and clear the Salesforce certifications. This blog includes Data Filters, Audit Trail, Lookup relationships, Workflow, triggers, custom fields, Permission sets, etc. You will also get exposure to some critical scenario-based and common questions.
The contribution of Salesforce in fulfilling the CRM needs of organizations is invaluable. For a long back, it has been a CRM global leader with a market share of 19.7%. As the growth of Salesforce is projected to be high, ultimately, the demand for skilled Salesforce professionals would also be high.
We have collected a bunch of Salesforce interview questions and Salesforce scenario-based interview questions that are sourced from Salesforce experts. I hope these questions would help you in cracking the Salesforce interview and landing your dream job. If in case you have attended any Salesforce Interviews earlier and are unable to find the same questions here, then feel free to comment on those questions in the comment section, and we will update them in this Salesforce interview questions blog so that it can help other students to learn from your experience. Let's get into the QAs now.
We have categorized Salesforce Interview Questions - 2024 (Updated) into 5 levels they are:
Salesforce Fundamentals & Advanced Level Topics Interview Questions Include:
Declarative, Audit reporting features:- Includes salesforce platform questions, creating child records, custom objects creation, user interface design, Different page layouts, governor limits for the user, custom labels in Salesforce, web service in Salesforce, specific user declaration, creating dynamic dashboards & creating object relations in Salesforce.
Programmatic features:- Includes Salesforce developer platform questions, What is an apex programming language, apex class creation with examples, what is bucket field, creating a VisualForce component, what is VisualForce page, few test methods of salesforce, what needs to be done when an error occurs, different data types, sharing rules for user-level access, Different apex transactions, How DML operations to be conducted on records.
Want to enhance your skills in dealing with the world's best CRM, enroll in our Online Salesforce Training |
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.
The following are the major subsidiaries of Salesforce:
Objects in Salesforce are used as database tables that are used to store information of 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 Salesforce by users. It stores the essential and unique information of an organization. Custom Object includes page layouts, relationship to other objects, custom user interface tab, custom fields, etc.
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.
The process to create an app in Salesforce:
Setup ---> build---> Create---> App---> Click on new.
By following this procedure, you can build an application. However, you want.
For in-depth understanding read our Salesforce Tutorial blog |
We can create two types of Apps in Salesforce
Custom app: This type of apps can be used in every business scenario. It is widely used in the market.
Console app: This type of app can be used only in the client service business, where we focus on solving the client’s issues. It is not comparatively, widely used in the market.
Check-Out Salesforce Admin Interview Questions Video |
Below mentioned are the Salesforce Standard Fields
Standard fields are nothing but audit fields.
‘Time’ is the latest field in Salesforce.
They are “Date filters.”
By selecting the “All Time” in the “Range” on the page.
We can not export.
There are four types of reports that are available in Salesforce, which are as follows.
The Audit trail in Salesforce is a unique feature that helps in tracking the changes that have been made in the organization by you and other administrators. It would be helpful for the organization with more administrators. This audit trail shows you the information of the twenty most recently made changes in your organization.
Below are the things that you could come to know:
We get the following benefits by using Salesforce CRM.
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 under a particular department would be assigned with 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.
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.
Visit here to learn Salesforce Online Training in Hyderabad |
We have three types of relationships in Salesforce, which are:
This Master-Detail relationship is the same as the relationship between a parent & child. In this aspect, the master is treated as Parent, and the Detail is a child. The master Object takes control of the behavior of the Detail object. The survival of the child is dependent on the parent because if the Master gets deleted the Detail will also automatically get deleted. You can create Roll-up summary fields in master records which helps in calculating the Min, Avg, Sum of the child records.
The relationship between the two objects is called a lookup relationship. Lookup relationships connect two object links together so that you can look up from related items to other items. It can be one-to-one or one to many.
The external lookup relationship is used to connect the child object to the parent object. The child object may be either a custom, standard, or external object. It uses to identify the correct map of the child object with the parent external object. The external lookup relationship values fields are matched against the External Id values.
It is a personal look up to the same object. The self-relationship creates a tree diagram of the objects. Let's take an example as an object “merchandise”. In this, we can create relationship merchandise between two accounts. This is called a self-relationship.
Workflow is an excellent way to automate specific business processes in Salesforce. To do this, you are required to define certain rules and regulations to automate tasks such as sending an email, updating a field, create a task
Transfer record is a type of function used to grant permission. If a user has permission to share a record with others, then he can share the records that have read-only access.
In Salesforce we use dashboards to represent the data in a pictorial format. Salesforce dashboard is capable of displaying 20 reports at a time.
A protocol that defines a uniform way of passing XML-encoded data. SOAP Stands for Simple Object Access Protocol.
The computer system executes one or more tasks according to the set of rules and scheduled tasks.
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.
For more details visit - Trigger Scenarios in Salesforce |
Below mentioned are the actions in the workflow
Record level access is determined by the parent, Mandatory on the child for reference of the parent, cascade delete (if you delete the parent, it can cascade delete the child).
We can create up to 2k records in Matrix, Tabular & Summary Reports.
Yes, it is possible in a master-detail relationship.
Maximum two MDR fields can be created in an object.
Maximum 40 Lookup relationship fields can be created in an object.
If you delete the parent record in the MDR, the child record also gets deleted in MDR.
It will restore the record with the data in the object.
Up to 40 can be created. (before 2010 it is 10 after 2016 it is up to 40 and it will change accordingly to salesforce updates).
Yes, the parent will update the object.
Do you want to get certified and build your career in Salesforce Marketing Cloud? Then enroll in "Salesforce Marketing Cloud Training" this course will help you to achieve excellence in this domain. |
Steps to find out the user license:
Salesforce Org → Setup → Administer → Company Profile → Company Information.
No, we cannot delete the user in the salesforce.
No, we cannot change the license when we are creating the profile.
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.
It helps in creating a many-to-many relationship between two objects in Salesforce. Using many-to-many relationships you can connect each record of an object to be linked with multiple records of other objects and vice versa. The junction object helps us in connecting the two selected objects with each other.
A Permission set is a collection of settings or permissions and is used to extend the user functional access without changing actual profiles. You can use permission sets to various types of users to extend the functionality access regardless of their roles. It is time taking task to create a profile; instead of this, you could easily create a permission set.
If we want to give access to other users we use sharing rules.
We have some fields which are indexed by default in Salesforce, which are :
The Fiscal year is known as the starting and ending date of a company's financial year. We have two types of financial years in Salesforce which are as follows.
There are many custom fields available are Picklist, Currency, Date, Text, Picklist (multi-select), Email, Percent, Number, Phone, Text area, Lookup relationship, Geolocation, Checkbox, Master-Detail relationship, etc..
We have five different ways in Salesforce to store various types of records such as images, files, and documents.
They are
The differences between the Data table and Page block
Page block:
DataTable:
Do you want to get certified and build your career in Salesforce Vlocity? Then enroll in "Salesforce Vlocity Training" this course will help you to achieve excellence in this domain. |
There are many things that can contribute to data loss in Salesforce. Which includes :
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.
Salesforce gives the accurate results of following things such as
The sharing rules are used only for allowing greater access to records not for restricting.
No, we can not do that in Salesforce.
Role Hierarchy :
If we add a user to a role, the user who is above in the role hierarchy will have read access.
Setup → manage users → roles → setup roles → click on ‘add role’ → provide name and save.
OWD:
OWD can be Private, Public Read Only, Public Read and Write.
Setup → Security Controls → sharing settings → Click on ‘Edit’
Manual Sharing :
Manual Sharing is sharing a single record to a single user or group of users.
We can see this button detail page of the record and this is visible only when the OWD setting is private.
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.
Yes, users can upload their custom logo in documents, and then they choose that logo for the organization.
We can customize different things on page layouts like Fields, Buttons, Custom Links, and Related Lists. We can also create sections.
Yes. we can create a Roll-Up Summary field on the master object.
No either all or none.
This video is designed to provide you with a perception of the Salesforce platform and help you build your dream career in it. It makes you aware of the skills and certifications needed for Salesforce Admins and Developers. It also includes steps and strategies to prepare for and crack the Salesforce job interviews.
We have categorized Salesforce Apex Interview Questions - 2024 (Updated) into 4 levels they are:
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.
Note: Generally the interface methods we give it as global.
We can use Apex in the following ways
All Apex programs run entirely On-Demand on the Force.com Platform.
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.
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.
Below mentioned are the ways in Salesforce to call 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 executing. 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:
Email services are an automated process that uses Apex classes to process the contents, Headers, Attachments of Inbound Email.
Note:
Related Article: SalesForce Integration |
Map Class in Apex:
For Example, the following table represents a map of countries and currencies
Country(Key) | ‘United States | ‘Japan’ | France’ | ‘England’ | ‘India’ |
Currency (Value) | ‘Dollar’ | Yen’ | ‘Euro’ | ‘Pound’ | ‘Rupee’ |
Batch Apex: Batch Apex allows you to define a single job that can be broken up into manageable chunks, whereas every chunk can be processed separately.
In the Batch Apex it will fetch all the records on which you want to perform the field update and divide them into a list of 200 records and on every 200 records operation is performed separately.
This would help us to execute on more than 10,000 records as it won’t perform an operation on all the records in a single transaction instead it divides them into a number of subtasks where each subtask may contain records up to 4000.
Example:
If you need to make a field update of every record of account object in your organization, then we have governing limits that would restrict us from achieving the above task.
Reason: In a single transaction we can process only 10,000 records. Now in the above case if we have more than 10,000 records in the organization then we can not perform this field update.
Want to enhance your skills in dealing with the world's best CRM, enroll in our Salesforce Admin Training |
It will invoke the Apex classes to run at a specific time.
Anybody who wants to schedule their class they have to implement the schedulable interface.
Schedule Interface: The class that implements this interface can be scheduled to run at different intervals. This interface has several methods that are
Public void execute(schedulablecontext sc)
Public class mySchedule implements schedulable
{
Public void execute(schedulablecontext sc)
{
Account a = new Account(Name = ‘Faraz’)
Insert a;
}
}
The trigger is an Apex Code that executes before or after. The following types of DML Operations:
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 success or if anything goes wrong or occurs even with a single record could result in a rollback of the entire transaction.
Triggers are divided into 2 types
Before Triggers: Before Triggers can be used to update or validate 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.
Syntax:
Trigger trigger_name on Object_Name(trigger_events) { Code_block } WHERE trigger_events can be comma separated list of events.
Apex Managed Sharing provides developers with the ability to support an application to share requirements.
When you want to call the apex class on the VisualForce page we have to declare in the following format.
< Apex : page controller = “class name “ >
Whenever we call a VisualForce page in which the controller attribute is defined it will first create an object for the apex class which is defined in the controller. When an object is created for the apex class first it involves the constructor.
A Sandbox is defined as a testing environment that is used to test the code or to conduct experiments in an isolated environment without harming the production environment.
A Sandbox helps you when you want to test the newly developed application on force.com 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 :
It is the cloud's fundamental technology to share IT resources securely and cost-efficiently.
Ans: Static resources allow you to add the content that you want to reference it on the VisualForce page, which includes things like images, Javascript, archives, CSS files, etc. The maximum size of a static resource of an organization is 250 MB.
The Sets can store any of the following data types
Visualforce components are small reusable components of functionality such as widgets, user interface elements, panels, etc. We have two types of VisualForce components which are standard and custom and are used to define the user interface behavior.
A query language that allows you to construct simple but powerful query strings and to specify the criteria that should be used to select the data from the platform database. SOQL Stands for Salesforce Object Query Language.
We must avoid using index values like Trigger.New[0] as we never know how many records we get in Trigger.New at runtime.
Insert ListForBulkDML;
If we want partially to happen, use a database.insert(list, false);
Salesforce Object Query Language is used to query records from the database.com based on the requirement.
There are 2 types of SOQL Statements:
Static SOQL:
The Static SOQL Statement is written in [] (Array Brackets)
These statements are similar to IINQ (Ion Integrated Query)
Example:
String search for =’Jones’;
Contact[] contacts=[select testfield__c, FirstName, LastName from Contact Where Last Name=:search for];
Dynamic SOQL:
It is used to refer to the creation of a SOQL string at run time with Apex code.
Example 1:- Queries
String myTestString = ‘TestName’;
List List= Database.Query(SELECT Id FROM MyCustomObject__c WHERE Name = :myTestString);
Example 2:- Queries
String resolvedfield L = myvariable.field__c;
List L = Database.Query(‘SELECT Id FROM myCustomObject__c WHERE field__c = ‘+resolvedfield_L);
Syntax -
SELECT field1, field2,.... FROM Object_Type [WHERE condition]
Example:-Queries
List accountList = [SELECT ID, Name, FROM Account];
List accountList = [SELECT ID, Name, FROM Account WHERE annual revenue<10000];
With API version 18.0 and later/you can use group by with aggregate functions, such as sum() or max() to summarize the data and enable you to rollup query results rather than having to process the individual records in your code.
Syntax: [ GROUP BY field GROUP BY LIST]
SOSL statement evaluates the list of sObjects, where each list contains the search results for a particular sobject type, The result lists are always returned in the same order as they were specified in the query.
If a SOSL query does not return any records for a specified sObject type, the search results include an empty list for that sObject.
Example: You can return a list of accounts, contacts, opportunities, and leads that begin with the phase map.
List < list < subject >> search list = [ find 'map*' In ALL FIELDS RETURNING Account (ID, Name), contact, opportunity, lead ];
Note:
Example:1
FIND 'map*' IN ALL FIELDS RETURNING account (Id, Name], Contact, Opportunity, Lead. In the Force.com API, the value of the FIND Clause is demarcated with braces.
FIND {map*} IN ALL FIELDS RETURNING account [Id,name], contact ,opportunity,lead;
From search list , you can create arrays for each object returned.
Account [ ] accounts = (( list < accounts > ) search list [0] );
Contact [ ] contacts = [( list ) search list [0]) ;
Opportunity [ ] opportunities = ((list < opportunity> ) search list [2]) ;
Lead [ ] leads = (( list < lead> ) search list [3]);
Use javascript remoting in VisualForce to call methods in apex controllers from javascript.
Javascript remoting has 3 parts.
To use javascript remoting in a Visualforce page, add the request as a javascript invocation with the following form:
Syntax -
[namespace.] controller.method ( [parameters ...] Call back Function, [configuration] );
Configure a remoting request by proving an object with configuration settings when you declare the remoting request.
JavaScript remoting supports the following configuration parameters.
Name | Datatype | Description |
Buffer | Boolean | Whether to group requests executed close to each other in time into a single request. The default is true. |
Escap | Boolean | Whether to escape the apex methods response. The default is true. |
Timeout | Integer | The timeout for the Static Resource request in milliSeconds. Default is 30000(30 seconds) |
Working on a project without code.
Working on a project with code.
=: is the operator used to compare.
IN - keyword.
We get Logic & Data.
Multiple edits, insert, javascript, angular js can be included.
inputField - copy the field from any object and display on a VF page | like copy paste work.
inputText - it will help to create a field from scratch | new creation
Add javascript file in Static Resource setup -> develop -> Static Resources -> click on ‘New’ -> Name: filename and add file from local desktop and save.
SOQL- (Salesforce Object Query Language) | SOSL (Salesforce Object Search Language) |
Using SOQL we can Search only on one object one time. | Using SOSL we can search on many objects at one time. |
We can query on all fields of any datatype | We can query only on fields whose data type is text, phone, and Email. |
We can use SOQL in the Triggers and the classes. | We cannot use Triggers but can in classes. |
We can perform a DML operation on SQL query results. | We cannot perform DML operations on search results. |
Use the future annotation to specify that these methods are executed asynchronously.
Syntax:
global class class_name
{
@future
Static void methodname(parameters)
{
//body of the method
}
}
A web directory where hundreds of app exchange apps are available to Salesforce customers to review, demo, comment upon, and /or install. Developers can submit their apps for listing on the appexchange directory if they want to share them with the community.
We use <Apex:selectoption>
We can not add formula fields to the custom index in Salesforce.
Workflow:
Trigger:
Standard controller, select option, page reference, message, etc.
Visit here to learn Salesforce Online Training in Bangalore |
The transient keyword prevents the data from being saved into the view state. This should be used for very temporary variables.
The maximum number of field dependencies we can use is a VisualForce page is 10.
Click on your Name tab, then click on Personal and you will find Reset my security token.
An app development model that allows apps to be defined as declarative “blueprints,” With no code required. Data model, objects, forms, workflows, and more are defined by metadata.
S-Controls are the predominant salesforce.com widgets that are completely based on JavaScript. These are hosted by salesforce but executed at the client-side. S-Controls are superseded by VisualForce now.
A wrapper or container is a data structure, a class type, or an abstract data type that contains multiple collections of objects. It helps in displaying various objects on a VisualForce page in a single table.
Public websites and applications that are directly integrated with your Salesforce organization without requiring users to log in with a username and password.
A Tab is a user interface to display custom object data or other embedded web content to a user. We have three types of tabs in Salesforce which are:
Below mentioned is the list of templates available in Salesforce :
Setup → Security Controls → sharing settings → Click on ‘Edit’
Apex sharing: Share object is available for every object(For Account object share object is AccountShare ). If we want to share the records using apex we have to create a record to the shared object.
Yes, of course! We can create and edit the VisualForce pages in both the production environment and in a sandbox. The only thing you can not do in a production environment with a VisualForce page is adding the unique values for which you need to do this in the sandbox.
No, you can not do that if you want to make any edits to the apex trigger/apex class that should be done in a sandbox environment.
Page layouts allow you to personalize or customize the given page objects or records. It helps in customizing or designing the page according to your requirements. Page layout editor helps you in customizing the pages. Using this page, you can customize things like buttons, fields, custom links, and related lists.
We can use database.executebatch ( ) method to programmatically begin the batch job.
Syntax:
Note: The class name that we are passing to the database.execute batch( ) method should be the object of the class which has implemented the database.batchable interface.
Yes. Just like S-Controls. Visualforce pages support embedded merge fields.
This can be viewed in the Summary Report.
This can be viewed in the Matrix Report.
They can see all the required data by using the Joined Report.
Lookup R/S:
Related Page: Field Dependency in Salesforce |
It allows three custom levels per object.
(Eg: company → Workers → Sub workers.)
This can be seen with Master-Detail Relationship.
This can be seen with LookUp Relationship.
Scenario: Creation of Permission set for the users, other than the user who should not have the Bonus field access.
Description:
Object: profit & loss.
Users: John & Philip
Condition::
OWD: Private.
Profile of John: Finance profile.
Finance Profile: CRED: Yes | VA: No | MA: No
Permission set of john: N/A
Role: N/A.
No, John cannot see the records of Philip.
Condition:: OWD: PRO(Public Read-only).
Yes, now John can see the records of Philip.
(Hint: Does he have min access to work on the object & OWD= PRO).
Condition:: OWD: PRW(Public Read Write).
Yes, John can edit the records, Philip.
(Hint: Does he have min access to work on the object & OWD= PRW).
No, now John cannot delete the records of Philip.
Profile: Sales Profile.
Users: Stephen, Philip.
User in another profile: Celia.
Condition:: Object Setting in finance profile : CRED=Y | VA=N | MA=N.
No.
No.
Condition :: Object Setting in finance profile : CRED=Y | VA=Y | MA=N.
Yes.
No, he cannot delete anyone’s records.
We use the Roll-up summary field to calculate the values for the associated records, for example, a related list. We can also use it for creating the values for a master record- according to the values in detailed records. But, we must connect the master and the detail with a master-detail relationship.
In Salesforce, Queues help us to distribute, prioritize, and assign the records to the teams for sharing workloads. Queues are applicable to leads, service contracts, custom objects, cases, etc.
Escalation rules apply to escalation cases according to the rules specified in the escalation rule entry. Besides rule entries, we can also create escalation actions for determining what happens when the case escalates. The escalation rule can reassign a case to another support agent or a support queue.
Validation Rules enable us to apply a particular logic rule to contribute to our organization’s data integrity. We can define the conditions on the object that are not available. For instance, if we do not want to label an opportunity as closed if the account does not have the address.
The following are the primary components of the workflow:
Criteria: Criteria is the “if” portion of the statement. We have to set criteria for the workflow rule. First, we have to create a workflow rule and later configure the criteria.
Action: Action is the “then” portion of the statement. The action tells us what to do when the criteria are satisfied and occurs after the workflow rule configuration. We can add a time-dependent action or an immediate action for a particular workflow rule.
We perform time-dependent actions at particular times before closing the record. Workflow re-evaluates the record after time passes. It checks whether the workflow rule criteria are satisfied, and only then workflow rule executes the actions.
Workflow Task
When we have to assign the tasks to a salesforce user, you haunt a workflow task. A workflow task allocates a new task to a role, user, or record owner. It assists us in defining different task parameters like a priority, status, due date, and subject.
Workflow Alert
Workflow Alert is an email that an approval process or a workflow rule creates in the salesforce and is transmitted to different recipients.
Auto-Response is about transmitting emails to leads or cases for particular record attributes and promptly responding to customer inquiries or issues by establishing the auto-response rule. At the same time, we can set one rule for a lead and one rule for a case.
In Salesforce, we use custom labels for creating a multilingual application. Using the native language, they give information to users in the form of help texts and error messages. We can define the custom labels as custom text values that we can access from the Apex class or Lightning components and promptly or even the Visualforce page. We can translate these values into the language supported by the salesforce. Through the following path, we can access custom labels:
Setup->Search Custom Labels in Quick Find Box->Custom Labels
Sharing rules give sharing access to the users associated with the public groups, roles, or territories. It gives a higher level of access with the exceptions, far from our organization settings. Following are the two kinds of sharing rules:
To assure that no one gains resources from others, Force.com establishes various restrictions(governor limits) that limit code execution. Salesforce must do this due to its multi-tenant architecture, where all the customers and organizations share one resource. If the governor's limits are not satisfied, an error will rise, and the program execution will terminate. Following are the types of Governor limits:
In Salesforce, the Approval process is a sequence of steps for approving records. An approval process is also helpful for tracking who and when approved or rejected something. It includes different approval models, notifying approvers, and conditional logic for who must support.
Salesforce Chatter is a social networking application that enables us to share information and work cooperatively with each other. It helps us to build greater employee engagement through motivation. Salesforce Chatter also provides a forum throughout the enterprise for sharing fresh ideas and understandings. We can also use the mobile feed for tracking our project.
Guest users are the users who do not have user accounts in our organization. They are also known as unauthorized users as they do not have to log in. We can make the pages accessible. Unauthorized users can create or edit the records.
Generally, we have various limitations and considerations for assessing. Yet, we can use this feature for solving use cases, and we do it financially because the guest user licenses are free.
A changeSet is a group of components that we can migrate between the associated organizations (like from a sandbox to the production, sandbox to the sandbox, etc.).
Here is the list of most frequently asked Salesforce interview questions and answers discussed below
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.
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.
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.
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 an effective application Salesforce, then join our Salesforce Developer Training to get a Flat 20% Off Course Fee |
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.
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.
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.
By using the action provider, we can invoke the javascript controller action through a component markup
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.
For example, if we have to display 100 records over the page.
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
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’));
Custom Objects | Custom 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 |
We cannot customize Apex in the production organization. We must change and deploy through a sandbox and satisfy test coverage requirements.
Salesforce has different API’s 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.
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.
Check Out: Bucket Field In Salesforce |
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.
Salesforce records data on the details like customer details, sales numbers, customer served, and repeat customers and use of these records for creating detailed charts, dashboards, and reports. In this way, it tracks the sales of our organisation.
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.
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 executing. 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:
Following are the different types of bindings:
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.
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.
The package is a collection of the components list or associated applications. Following are the kinds of packages:
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.
Following are the ways to implement metadata in the Salesforce:
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.
By using the <chatter: feed> component, we can display the chatter feed.
Example:
<apex:page>
<chatter: feed entityId=”{!$User.Id}”/>
</apex:page>
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);
The apex: output link body comprises of image or text that we can display in the link.
<apex: outputlink value="https://mindmajix.com/" id="theLink">www.mindmajix.com </apex:outputLink>
Explore Salesforce Sample Resumes Download & Edit, Get Noticed by Top Employers! |
Our work-support plans provide precise options as per your project tasks. Whether you are a newbie or an experienced professional seeking assistance in completing project tasks, we are here with the following plans to meet your custom needs:
Name | Dates | |
---|---|---|
Salesforce Training | Nov 23 to Dec 08 | View Details |
Salesforce Training | Nov 26 to Dec 11 | View Details |
Salesforce Training | Nov 30 to Dec 15 | View Details |
Salesforce Training | Dec 03 to Dec 18 | View Details |
Vinod M is a Big data expert writer at Mindmajix and contributes in-depth articles on various Big Data Technologies. He also has experience in writing for Docker, Hadoop, Microservices, Commvault, and few BI tools. You can be in touch with him via LinkedIn and Twitter.