Top 100+ Salesforce Crm Interview Questions And Answers
Question 1. Can Two Users Have The Same Profile? Can Two Profiles Be Assigned To The Same User?
Answer :
Profiles decide the level of access a user will have in a Salesforce org.
As some distance because the first a part of the question is concerned, Yes. One profile may be assigned to any number of customers. Take the example of a Sales or Service team in a organisation. The complete group might be assigned the equal profile. The admin can create one profile: Sales Profile, so that you can have access to the Leads, Opportunities, Campaigns, Contacts and other gadgets deemed necessary by way of the business enterprise.
In this way, many users may be assigned the equal profile. In case the team lead or manager want access to additional statistics/ gadgets then it can be accomplished by way of assigning permission sets most effective for the ones customers.
Answering the second a part of the question, each consumer can best be assigned 1 profile.
Question 2. What Are Governor Limits In Salesforce?
Answer :
In Salesforce, it is the Governor Limits which controls how a good deal facts or what number of records you could shop within the shared databases. Why? Because Salesforce is based on the concept of multi-tenant structure. In easier phrases, Salesforce makes use of a unmarried database to keep the records of more than one customers/ customers.
To make sure no single consumer monopolizes the shared resources, Salesforce delivered the concept of Governor Limits which is precisely enforced by the Apex run-time engine.
Governor Limits are a Salesforce developer’s biggest assignment. That is because if the Apex code ever exceeds the restrict, the expected governor troubles a run-time exception that cannot be treated. Hence as a Salesforce developer, you need to be very cautious even as growing your application.
Different Governor Limits in Salesforce are:
Per-Transaction Apex Limits
Force.Com Platform Apex Limits
Static Apex Limits
Size-Specific Apex Limits
Miscellaneous Apex Limits
Email Limits
Push Notification Limits
Siebel - CRM Interview Questions
Question three. What Is A Sandbox Org? What Are The Different Types Of Sandboxes In Salesforce?
Answer :
A sandbox is a duplicate of the manufacturing surroundings/ org, used for trying out and improvement functions. It’s useful because it permits development on Apex programming without stressful the production environment.
Question four. When Can You Use It?
Answer :
You can use it whilst you want to check a newly developed Force.Com utility or Visualforce web page. You can increase and check it inside the Sandbox org instead of doing it without delay in production.
This manner, you could increase the application without any hassle and then migrate the metadata and information (if relevant) to the manufacturing environment. Doing this in a non-production surroundings lets in developers to freely take a look at and experiment programs stop to quit.
Types of Sandboxes are:
Developer
Developer Pro
Partial Copy
Full
Siebel - CRM Tutorial
Question 5. Can You Edit An Apex Trigger/ Apex Class In Production Environment? Can You Edit A Visual Force Page In Production Environment?
Answer :
No, it isn't feasible to edit apex classes and triggers at once in production environment.
It desires to be executed first in Developer version or testing org or in Sandbox org. Then, to install it in manufacturing, a person with Author Apex permission ought to install the triggers and training using deployment tools.
However, Visual pressure pages may be created and edited in both sandbox and in production.
Only if the page has to do something particular (exclusive values), it'd have to be developed through Sandbox.
ERP Tools Interview Questions
Question 6. What Are The Different Data Types That A Standard Field Record Name Can Have?
Answer :
A widespread discipline file call may have statistics sort of either auto range or text area with a restriction of eighty chars.
For generating vehicle numbers, the format needs to be distinct at the same time as defining the field and after that for every report this is added, the number will get automobile generated.
For instance:-
Sr No-1
Sr No-2
Sr No-3
Question 7. What Is Who Id And What Id In Activities?
Answer :
Who ID refers to people. Typically: contacts or leads.
Example:
Lead ID
Contact ID
What ID refers to gadgets.
Example:
Account ID
Opportunity ID
ERP Tools Tutorial Salesforce Admin Interview Questions
Question eight. What Is The Use Of Writing Sharing Rules? Can You Use Sharing Rules To Restrict Data Access?
Answer :
Sharing regulations are written to present edit get admission to (public examine and write) or public examine only access to sure people in Salesforce org.
A conventional example is when:- handiest your managers or superiors need to accept more credentials in your statistics in objects in comparison to your friends.
By default, all users to your business enterprise can have business enterprise-huge-default sharing settings of either Public Read Only or Private.
To provide access to extra facts, which customers do not personal, we write sharing guidelines.
Example: Sharing regulations are used to increase sharing access to customers in public groups or roles. Hence, sharing policies aren't as strict as company-extensive default settings. They allow extra get admission to for those users.
As far as the second one a part of the question is worried, the solution is no. We cannot use sharing policies to restrict records get right of entry to. It is only used for permitting greater get entry to to data.
Question nine. What Is A Bucket Field In Reports?
Answer :
A bucket discipline helps you to institution related data together via ranges and segments, without the usage of complex formulas and custom fields. Bucketing can for this reason be used to group, filter out, or set up document facts. When you create a bucket area, you want to define more than one classes (buckets) that are used to group document values.
The benefit is that in advance, we had to create custom fields to organization or segment sure information.
Salesforce Developer Interview Questions
Question 10. What Are Dynamic Dashboards? Can Dynamic Dashboards Be Scheduled?
Answer :
Before we apprehend dynamic dashboards, allow us to first understand static dashboards. Static dashboards are the primary dashboard kinds a good way to be visible to any user who has made a document out of his data. An instance of that is what a Sales supervisor/ Marketing manager would be capable of see on his Salesforce org. In other words, a ordinary dashboard shows facts only from a single person’s angle. Now comes the idea of dynamic dashboards.
Dynamic dashboards are used to display statistics which is customized to a specific person. Let us recollect the same instance as above. In case the Sales manager desires to view the record generated unique to best one in all his crew participants, then he can use dynamic dashboards.
You can use dynamic dashboards while you want to expose person-unique facts of a particular person, inclusive of their non-public quotas and sales, or number of case closures, or leads transformed and many others.
You can also use a everyday/ static dashboard when you need to reveal nearby or agency-huge statistics to a set of users, including a selected location’s income quantity, or a particular guide group’s performance on case closures.
As some distance as the second a part of the query is concerned, no we can not time table a dynamic dashboard. That is due to the fact each time we open the dashboard, it's going to show the data generated in actual-time.
Apex Tutorial
Question 11. What Are The Different Types Of Object Relations In Salesforce? How Can You Create Them?
Answer :
No list of Salesforce interview questions is entire with out concerning relationships among items in Salesforce. Relationships in Salesforce can be used to establish hyperlinks between two or extra gadgets.
The distinctive varieties of item relationships in Salesforce are:
Master-Detail Relationship (1:n):-
It is a discern-infant dating wherein the master object controls the behavior of the dependent toddler item. It is a 1:n relationship, in which there can be only one parent, but many youngsters.
The main idea you want to be understand is that, being the controlling object, the master area can not be empty. If a document/ field in master item is deleted, the corresponding fields within the dependent object are also deleted. This is called a cascade delete. Dependent fields will inherit the owner, sharing and safety settings from its master.
You can outline master-detail relationships between custom objects, or between a custom object and preferred object as long as the same old object is the grasp in the courting.
Lookup Relationship (1:n):-
Lookup relationships are used when you need to create a link among two gadgets, but without the dependency at the determine object. Similar to Master-Detail dating, you can consider this as a shape of determine-toddler relationship in which there's only one determine, but many kids i.E. 1:n dating.
The difference here is that notwithstanding being controlling discipline, deleting a document will now not result in automatic deletion of the lookup discipline in the child object. Thus the information within the baby item will now not be affected and there may be no cascade delete here. Neither will the child fields inherit the owner, sharing or safety settings of its figure.
Junction Relationship (Many-To-Many):-
This type of a courting can exist whilst there's a want to create master-element relationships. Two grasp-element relationships may be created by linking three custom gadgets. Here, two objects may be master items and the third item might be depending on both the items. In simpler words, it'll be a baby object for both the master items.
Apex Interview Questions
Question 12. What Happens To Detail Record When A Master Record Is Deleted? What Happens To Child Record When A Parent Record Is Deleted?
Answer :
In a Master-Detail courting, whilst a master document is deleted, the detail record is deleted mechanically (Cascade delete).
In a Lookup relationship, even if the determine record is deleted, the child file will no longer be deleted.
Siebel - CRM Interview Questions
Question 13. Can You Have A Roll Up Summary Field In Case Of Master-detail Relationship?
Answer :
Yes. You can have a roll-up precis in case of a grasp-element courting. But no longer in case of a lookup dating.
A roll-up summary field is used to display a value in a grasp record based totally at the values of a set of fields in a element document. The detail report must be associated with the master thru a grasp-detail dating.
There are 4 calculations that you can do the usage of roll-up precis discipline. You can count number the wide variety of element facts associated with a grasp document. Or, you could calculate the sum, minimal cost, or most price of a field in the element information.
Salesforce Tutorial
Question 14. Explain The Term “statistics Skew” In Salesforce?
Answer :
“Data skew” is a situation which you'll stumble upon whilst running for a huge consumer in which there are over 10,000 information. When one unmarried consumer owns that many statistics we name that situation ‘possession facts skew’.
When such customers carry out updates, performance troubles might be encountered because of “information skew”. This happens whilst a unmarried person/ contributors of a unmarried position own maximum of the statistics for a specific object.
Question 15. Explain Skinny Table. What Are The Considerations For Skinny Table?
Answer :
In Salesforce, skinny tables are used to get admission to frequently used fields and to keep away from joins. This largely stepped forward performance. Skinny tables are incredibly effective, so much in order that even when the supply tables are modified, thin tables will be in sync with supply tables.
Considerations for thin tables:
Skinny tables can comprise a maximum of a hundred columns.
Skinny tables can not contain fields from other objects.
For full sandboxes: Skinny tables are copied in your Full sandbox businesses, as of the Summer ’15 release.
Visual Source Safe Interview Questions
Question sixteen. Which Fields Are Automatically Indexed In Salesforce?
Answer :
Only the following fields are robotically indexed in Salesforce:
Primary keys (Id, Name and Owner fields).
Foreign keys (lookup or grasp-detail dating fields).
Audit dates (such as SystemModStamp).
Custom fields marked as an External ID or a unique subject.
Question 17. How To Handle Comma Within A Field While Uploading Using Data Loader?
Answer :
In a Data Loader .CSV, if there is a comma in field content material, you may have to enclose the contents inside double citation marks”.
Salesforce Lightning Interview Questions
Question 18. For Which Criteria In Workflow “time Dependent Workflow Action” Cannot Be Created?
Answer :
Time dependent workflow motion can not be create for: “created, and each time it’s edited”.
ERP Tools Interview Questions
Question 19. What Are The Types Of Custom Settings In Salesforce? What Is The Advantage Of Using Custom Settings?
Answer :
There are two sorts of custom settings in Salesforce: List Custom Settings and Hierarchy Custom Settings.
List Custom Settings are a kind of custom settings that provides a reusable set of static information that can be accessed throughout your business enterprise irrespective of user/ profile.
Hierarchy Custom Settings are every other type of custom settings that uses integrated hierarchical good judgment for “personalizing” settings for particular profiles or users.
The gain of the usage of custom settings is that it lets in developers to create a custom set of get admission to regulations for numerous users and profiles.
Question 20. How Many Active Assignment Rules Can You Have In A Lead/ Case?
Answer :
Only one rule may be active at a time.
Salesforce Report And Dashboard Interview Questions
Question 21. What Are Custom Labels In Salesforce? What Is The Character Limit Of Custom Label?
Answer :
Custom labels are custom textual content values that may be accessed from Apex training or Visualforce pages. The values here may be translated into any language supported through Salesforce.
Their benefit is that they allow developers to create multilingual applications which automatically presents statistics in a consumer’s local language.
You can create up to five,000 custom labels for your agency, and they can be up to at least one,000 characters in duration.
Question 22. What Is The Difference Between A Role And Profile In Salesforce?
Answer :
As referred to in one of the preceding Salesforce interview questions, a profile will ultimately manipulate get admission to to which facts a consumer has in a Salesforce org. No consumer can work at the Salesforce org with out being assigned a profile. The Profile is consequently mandatory for every person.
Role but isn't always mandatory for every consumer. The number one function of the Role/ Role hierarchy is that it lets in higher level users in hierarchy get get entry to to records owned with the aid of lower level users in the hierarchy. An instance of this is Sales Managers gaining access to information owned via Sales Reps whilst their peers do not get get right of entry to to it.
Question 23. What Are The Examples Of Non-deterministic Force.Com Formula Fields?
Answer :
Before I mention a number of the examples, let me provide you with an creation to deterministic and non-deterministic components fields. Formula fields whose fee can be static are called deterministic fields. Whereas, system fields whose price may be modified dynamically or whose values will need to be calculated on the fly, they're referred to as non-deterministic formulation fields. A traditional example of that is a method returning the present day date and time.
Some examples of non-deterministic fields in Force.Com are:
Lookup fields
Formula fields whose reference spans over other entities
Fields having dynamic date features like:- TODAY() or NOW()
Salesforce Integration Interview Questions
Question 24. Why Do We Need To Write Test Classes? How To Identify If A Class Is A Test Class?
Answer :
Software builders from around the sector will unanimously agree that writing code in take a look at training makes debugging greater green. That is due to the fact test instructions help in creating robust and errors-free code be it Apex or every other programming language. Since Unit tests are effective of their very own proper, Salesforce calls for you to jot down test lessons in Apex code.
Because test classes and take a look at methods affirm whether a particular piece of code is working properly or now not. If that piece of code fails, then developers/ testers can accurately discover the check class having the faulty worm.
Test instructions may be decided without problems because each check elegance might be annotated with isTest keyword. In fact, if we do not annotate a check magnificence with isTest, then it can not be defined as a test class. Similarly, any method within a category which has the key-word take a look at technique is a test approach.
Salesforce Admin Interview Questions
Question 25. What Is Minimum Test Coverage Required For Trigger To Deploy?
Answer :
In Salesforce, if you want to deploy your code to manufacturing, then you definately ought to make sure that as a minimum seventy five% of your Apex code is covered by using unit checks. And these kinds of exams ought to whole efficaciously.
Question 26. What Are The Different Ways Of Deployment In Salesforce?
Answer :
You can deploy code in Salesforce the usage of:
Change Sets
Eclipse with Force.Com IDE
Force.Com Migration Tool – ANT/Java based totally
Salesforce Package
Salesforce Interview Questions
Question 27. What Is An External Id In Salesforce? Which All Field Data Types Can Be Used As External Ids?
Answer :
An outside ID is a custom discipline which can be used as a unique identifier in a report. External IDs are particularly used at the same time as importing facts/ records. When uploading facts, one among the many fields in the ones records need to be marked as an outside ID (unique identifier).
An crucial point to word is that only custom fields can be used as External IDs.
The fields that can be marked as outside IDs are: Text, Number, E-Mail and Auto-Number.
Salesforce Developer Interview Questions
Question 28. How Many Call Outs To External Service Can Be Made In A Single Apex Transaction?
Answer :
Governor limits will restrict a unmarried Apex transaction to make a most of a hundred callouts to an HTTP request or an API name.
Question 29. What Is The Difference Between A Standard Controller And A Custom Controller?
Answer :
Standard controller in Apex, inherits all the usual object homes and preferred button functionality immediately. It carries the equal functionality and good judgment that are used for preferred Salesforce pages.
Custom controller is an Apex magnificence that implements all the logic for a web page without leveraging a popular controller. Custom Controllers are associated with Visual pressure pages through the controller characteristic.
Question 30. How To Get The User Id Of All The Currently Logged In Users Using Apex Code?
Answer :
You can get the ID’s of all of the currently logged in customers through using this international characteristic: UserInfo.GetUserId ().
Question 31. How Many Records Can A Select Query Return? How Many Records Can A Sosl Query Return?
Answer :
The Governor Limits enforces the subsequent:-
Maximum quantity of records that can be retrieved by means of SOQL command: 50,000.
Maximum wide variety of statistics that can be retrieved by means of SOSL command: 2,000.
Question 32. What Are The Three Types Of Bindings Used In Visual Force? What Does Each Refer To?
Answer :
There are 3 styles of bindings used in Salesforce:-
Data bindings, which discuss with the information set within the controller.
Action bindings, which talk over with action methods inside the controller.
Component bindings, which talk over with different Visual pressure components.
Data bindings and Action bindings are the most not unusual and they may be used in each Visual pressure web page.
Question 33. What Are The Different Types Of Collections In Apex? What Are Maps In Apex?
Answer :
Collections are the form of variables which may be used to shop a couple of range of data (facts).
It is useful because Governor Limits limit the variety of facts you can retrieve consistent with transaction. Hence, collections can be used to keep more than one records in a single variable described as kind collection and with the aid of retrieving information in the form of collections, Governor Limits can be in check. Collections are just like how arrays paintings.
There are 3 series types in Salesforce:
Lists
Maps
Sets
Maps are used to keep facts inside the shape of key-value pairs, where each particular key maps to a single value.
Syntax: Map<String, String> us of a city = new Map<String, String>();
Apex Interview Questions
Question 34. What Is The Use Of “@destiny” Annotation?
Answer :
Future annotations are used to become aware of and execute techniques asynchronously. If the approach is annotated with “@destiny”, then it is going to be accomplished simplest whilst Salesforce has the available assets.
For instance, you may use it while making an asynchronous internet provider callout to an outside carrier. Whereas with out the usage of the annotation, the net provider callout is made from the equal thread this is executing the Apex code, and no extra processing will arise until that callout is whole (synchronous processing).
Question 35. What Are The Different Methods Of Batch Apex Class?
Answer :
Database.Batchable interface incorporates 3 strategies that must be carried out:
Start approach:
international (Database.QueryLocator begin(Database.BatchableContext bc) .
Execute technique:
Global void execute (Database.BatchableContext BC, list).
Finish method:
Global void end(Database.BatchableContext BC).
Question 36. What Is A Visual Force Component?
Answer :
A Visual pressure Component is both a predefined component (standard from factor library) or a custom element that determines the person interface conduct. For example, in case you want to ship the textual content captured from the Visual pressure web page to an item in Salesforce, then you definately need to make use of Visual force components.
Example: <apex: detail>
Visual Source Safe Interview Questions
Question 37. What Is Trigger.New?
Answer :
Trigger.New is a command which returns the list of information that have been brought these days to the subjects. To be more specific, those facts might be lower back which might be yet to be stored to the database. Note that this situation listing is best to be had in insert and update triggers, and the statistics can simplest be modified in before triggers.
But only for your facts, Trigger. Vintage returns a listing of the old variations of the concern facts. Note that this concern list is simplest to be had in replace and delete triggers.
Question 38. What All Data Types Can A Set Store?
Answer :
Sets will have any of the subsequent records types:
Primitive sorts
Collections
Object
User-defined types
Built-in Apex sorts
Question 39. What Is An Object Type?
Answer :
An item is any object that can be saved inside the Force.Com platform database. Apex allows the use of everyday item summary type to symbolize any item.
For example, Vehicle is a usual kind and Car, Motor Bike all are concrete types of Vehicle.
In SFDC, object is ordinary and Account, Opportunity, CustomObject__c are its concrete type.
Question forty. What Is An Apex Transaction?
Answer :
An Apex transaction represents a hard and fast of operations which can be achieved as a single unit. The operations right here include the DML operations which are answerable for querying information. All the DML operations in a transaction both whole effectively, or if an blunders takes place even in saving a unmarried file, then the complete transaction is rolled returned.
Salesforce Lightning Interview Questions
Question forty one. What Is The Difference Between Public And Global Class In Apex?
Answer :
Global class is available throughout the Salesforce example no matter namespaces.
Whereas, public instructions are on hand most effective within the corresponding namespaces.
Question forty two. What Are Getter Methods And Setter Methods?
Answer :
Get (getter) technique is used to pass values from the controller to the VF web page.
Whereas, the set (setter) method is used to set the price lower back to controller variable.
Salesforce Report And Dashboard Interview Questions

