SFDC Interview Set1
SFDC Interview Set1
Tableau
Pardot
Heroku
Mulesoft
Demandware Inc
SalesforceIQ
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.
By following this procedure, you can build an application. However, you want.
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.
Owner,
Name,
Last modified by,
Created by.
There are four types of reports that are available in Salesforce, which are as
follows.
The tabular report is those that give us the total in a tabular format.
Matrix report the format where grouping is done based on columns and
rows.
The summary report gives us detailed reports based on columns.
Joined reports which are capable of allowing two or more reports in one
report.
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.
15. What is a profile? Can two users have the same profile?
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.
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.
Master-detail relationship
Lookup relationship
External Lookup
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.
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.
Field update
Task
Outbound message
Email alert
29. What are the main things that need to consider in the “Master-Detail
Relationship”?
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).
30. How many records can be shown in matrix, tabular & summary reports?
If you delete the parent record in the MDR, the child record also gets deleted in
MDR.
Do you want to get certified and build your career in Salesforce Marketing Clo
Then enroll in "Salesforce Marketing Cloud Training" this course will help you
achieve excellence in this domain.
38. How we can create an MDR on those objects where we already have records?
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.
We have some fields which are indexed by default in Salesforce, which are :
Name
ID
Owner fields
Master-detail relationship fields
Lookup fields
Last modified dates
Audit dates
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..
49. 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.
50. What is the main difference between data table vs page block table tags?
Page block:
DataTable:
Do you want to get certified and build your career in Salesforce Vlocity? Then e
in "Salesforce Vlocity Training" this course will help you to achieve excellence in
domain.
There are many things that can contribute to data loss in Salesforce. Which
includes :
1. Migrating to number, percent, and money, from other data types.
2. When you change the date and time
3. Migrating to multi-select picklist from any other type but except picklist.
4. Moving from Checkbox, auto number,multi-select picklist to any other
types.
5. Changing text area to phone, URL, email, or text.
The sharing rules are used only for allowing greater access to records not for
restricting.
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:
Manual Sharing :
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.
58. Does the user can create insert their own custom logo while creating their own
custom applications?
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.
61. Can the governor limit perform partial DML activity? Eg: we are inserting 200
records in a loop, the Governor limit is hit at the 151st record, then will those 150
records be created?
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.
65. What is Apex in Salesforce?
Apex enables developers to add business logic to most system events like
button clicks related to record updates and VisualForce pages.
The batch apex class deploys the database batchable interface with the three
methods as follows:
Start
Finish
Execute
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:
Note:
‘Unite
‘Japan France ‘Englan
Country(Key) d
’ ’ d’
States
‘Dollar
Currency (Value) Yen’ ‘Euro’ ‘Pound’
’
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
Anybody who wants to schedule their class they have to implement the
schedulable interface.
Insert
Update
Delete
Merge
Upsert
Undelete
1. Before Triggers
2. After Triggers
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.
This type of sharing is available only with users to modify all data
permissions. Only these users can add/change apex-managed sharing.
Apex Managed Sharing uses a Sharing reason (Apex Sharing Reason)
77. What is the Usage of the apex program within the VisualForce page?
When you want to call the apex class on the VisualForce page we have to
declare in the following format.
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.
Developer
Developer pro
Partial copy
Full
Salesforce Apex Advanced Interview Questions
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.
Collections
User-defined types
subjects
Primitive types
Built-in Apex types
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.
1. Static SOQL
2. Dynamic SOQL
Static SOQL:
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.
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.
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:
The syntax of the class on Apex differs from the syntax of the FIND clause
in the SOAP API.
In Apex, the value of the FIND cause is demarcated with single quotes.
Example:1
The remote method invocation you add to the VisualForce page, written in
javascript.
The remote method definition in your Apex controller class.
This method definition is written in apex, but there are few differences
from normal action methods.
The response handles callback function you add to or include in your VF
page, written in javascript.
Syntax -
[namespace.] controller.method ( [parameters ...] Call back Function,
[configuration] );
97. If one wants to actually compare the variable name in a query what operator
should be used?
=: is the operator used to compare.
98. When one wants to pass the collection to the query instead of passing one
value which keyword helps us?
IN - keyword.
Add javascript file in Static Resource setup -> develop -> Static Resources ->
click on ‘New’ -> Name: filename and add file from local desktop and save.
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
}
}
106. Which tag is used with both radio buttons and picklists to create the selectable
values?
We use <Apex:selectoption>
Workflow:
Trigger:
109. What are some apex classes that are commonly used within?
The transient keyword prevents the data from being saved into the view state.
This should be used for very temporary variables.
111. What is the maximum number of field dependencies we can use in the
VisualForce page?
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.
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:
Custom Tabs.
Visualforce Tabs.
Web Tabs.
118. What are the types of email templates that can be created in Salesforce?
119. If we want to share records based on conditions like share records to a group
of users. Whose country criteria is India, What are the steps to be followed?
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.
121. Is it possible to make changes to the apex trigger/apex class in the production
function?
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.
122. What are the things that can be customized on page layouts?
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.
123. How to invoke batch apex job (or) how to execute the batch apex job
programmatically?
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.
124. Will Visualforce still support the merge fields usage like S-control?
Yes. Just like S-Controls. Visualforce pages support embedded merge fields.
125. 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.
126. 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.
127. 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.
128. When two objects are connected with each other using r/s, then on 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.
129. There is only 2 MDR allowed per object how many custom levels it can have?
130. There is an object called Employee Details, and another object called Salary
Info, think from a business perspective. If you want to combine the 2 objects, what
will you choose in the relationship?
131. Assume that you require PC’s in bulk and have given an order to ‘XYZ’
company & they found a bulk supplier and asked to process, what would be the
relationship between the company and the supplier?
132. Business Requirement - Assume there is a finance dept, there are many users
and they have access to an object called finance, In that object, there is a field
called “Bonus”, and in the dept 10 users, only one should not see the field?
Scenario: Creation of Permission set for the users, other than the user who
should not have the Bonus field access.
Description:
Condition::
OWD: Private.
Profile of John: Finance profile.
Role: N/A.
(Hint: Does he have min access to work on the object & OWD= PRO).
(Hint: Does he have min access to work on the object & OWD= PRW).
137. In the above scenario can Stephen see the record of Celia or not?
No.
No.
Yes.
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.
2) Explain Queues?
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.
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.
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
8) Explain Auto-Response?
10) What are Sharing rules and what are the different types of sharing rules?
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:
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.
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.
3) Define OAuth?
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.
Do you want to build an effective application Salesforce, then join our Salesfo
Developer Training to get a Flat 20% Off Course Fee
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.
Through StandardSetController
Through Offset and Limit keywords in SOQL Query
<apex:pageMessages></apex:pageMessages>
12) What are the differences between Custom Objects and Custom Settings?
Custom objects have to use SQL queries for Do not need to use SQL queries for fetchin
fetching the records from the database. records.
On Custom objects, we can create apex triggers On List Custom settings, we cannot create
and validation rules. triggers and validation rules
We can create a tab for custom objects. We cannot create a tab for custom setting
14) Can you give an example of Salesforce API and its importance?
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.
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.
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.
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:
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.
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.
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.
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!
It's not difficult to get started with a Salesforce career. Although getting an
entry-level salesforce job takes time, it is possible.
There are lots of different groups or communities on the internet. These are
some simple ways for learning Salesforce's new features. Joining such
communities can help you enhance your skills, which are necessary for
obtaining a good job.
Getting trained and certified in Salesforce is another great way for a beginner to
gain relevant skills with the platform and land a job.
Salesforce is popular because it has features that no other CRM software has,
including contact management, workflow creation, task management,
opportunity tracking, collaboration tools, customer interaction tools, analytics,
and an easy, mobile-ready interface. There are further features for marketers,
such as social network integration, marketing lead monitoring, and email
integration, in addition to these. Sales forecasting, sales communities, and sales
lead monitoring are all beneficial tools for salespeople.
The demand for Salesforce skills is rising. The highest-paying career on the
pyramid, for example, is Technical Architect, with an average annual income of
$138k in the United States. In India, the average income for a Salesforce
Consultant is Rs 10,40,587 per year, but it may go up to Rs24 lakh.
On the other hand, salaries are determined by the employer, location, level of
expertise, and type of certification. Naturally, if you have more credentials
under your belt, your bundle will be more expensive.
Obtain one or more Salesforce certifications if you want to land a new job with
an arsenal of in-demand skill sets or move laterally to a well-paying Salesforce
job with greater career prospects.
There are certain skills that any good Salesforce developer should have. These
include:
Determine the users' requirements, and then design, test, and develop
software to suit those needs.
Create successful project planning by designing Salesforce solutions. Add
value to the project definition, development, and deployment stages.
Suggest improvements to existing client apps, programmes, and systems
in the form of new software.
For internal users, create and deploy Internet- and intranet-based
programs.
Address any potential data quality issues and develop strategies to
overcome any system deficiencies.
For future reference, document every aspect of the company's entire
inventory of applications and systems, particularly in relation to updates
and maintenance.
Collaborate with other tech experts to develop the best software.
12. What are the job profiles that a Salesforce Professional can look for?
Salesforce Admin
Salesforce Developer
Salesforce Marketer
Salesforce Business Analyst
Salesforce Functional Consultant
Salesforce Architect
Implementation Experts
CPQ Specialists
Here are a few suggestions to keep in mind while creating your Salesforce
Developer CV. Since the Salesforce Ecosystem is so vast, you'll probably be
familiar with a number of Salesforce tools, technologies, and services. You must
choose to highlight experiences that the recruiter finds appealing.
Communication
Customer Service
Problem-solving
Project Management
You may only get one chance to impress a potential employer. Follow our tips to
give yourself the best and succeed in the interview.
Use real-life examples: It may sound simple, but it's surprising how many
times after an interview, we speak with a Salesforce professional and they
recollect a previous accomplishment that they had forgotten about due to
interview anxiety or other causes.
To set yourself apart, make sure you prepare particular facts and speak about
your previous-role accomplishments.
Research the hiring manager: Perhaps not as entirely as you stalked the
company, but be well-prepared for the interview by knowing:
The role of the recruiting manager, how long they've been with the
company, and who's on their team are all factors to consider.
Where they've previously worked and with whom they've collaborated
They may post work-related content in professional groups that they are
members of.
Any interests you have in common could be a good fit.
Prepare some common interview questions: While you can't predict what
the company will ask, you may prepare by familiarising yourself with popular
interview questions from StackOverflow and other communities.