Several candidates apply for getting a job in Salesforce every year in various departments. The company follows strict rule to choose the finest employees for their workforce. The applications must deliver strong CVs and candidates must get through a severe interview session. This session will test the true knowledge of a person along with the ability to apply it. therefore, candidates are actively looking for some guidance in this case.
Hence, here is Part 1 of the Top 100 Salesforce Interview Questions that you might see during the interviews. Make sure to go through them before you attend the session. This will give you an upper edge over other competitors.
Q1. What is meant by a mini page in salesforce?
A mini page layout contains a subset of the items of the existing page layout. Moreover, the layouts inherit record type and profile associations, related lists, fields, and field access settings from their associated page layout.
Q2. What is the definition of button overriding?
Several buttons can be overridden such as Edit, New, or View in Salesforce Classic, Lightning Experience, and mobile independently. Moreover, you might override few standard buttons with visualforce pages. Also, if you can override the standard button with visualforce page, VF page should use standard controller to an object which is related to standard button.
Q3. What do you mean by Apex transaction in the terms of Admin Salesforce?
It basically represents a set of operations that are executed as one unit. These operations include the DML which is responsible to query records. All the DML operations in a transaction either complete successfully, In case an error occurs even in saving a single record, the entire transaction will be reverted back.
Q4. Explain about objects from the Salesforce point of view.
In layman terms, Salesforce objects are database tables that permit the user for storing the data specific to a company. There are a total of two major object types, Standard and Custom.
Q5. How to display multiple columns after clicking on the tab?
Firstly, click on the Setup > Create > Objects >
Then select the corresponding object link > Under Search Layouts section > Click Edit
This will lead to Object Tab > Move the needed fields from Available Fields to Selected Fields. > Click on Save >
This will do the job for you.
Q6. What will happen to child records if we delete a parent record in case of a Lookup Relationship?
If we delete the parent object record all the child object records relationship’s field value will be get deleted. (Entire record won’t be get deleted)
Q7. Can you edit an apex trigger/ apex class in a production environment? Can you edit a Visualforce page in a production environment?
No, there is no scope of editing an apex class or trigger while in a production mode. However, Visualforce pages can be created and edited in both sandbox and in production.
Q8. List all the types of templates that are used to send emails in Salesforce.
The different types of email templates used in the system are,
- HTML with letterhead
- Custom HTML
Q9. Mention all the different types of reports present in Salesforce? Is it possible to delete mass reports in the system?
- Summary Reports
- Joined Reports
- Matrix Reports
Obviously, we can mass delete reports in Salesforce. You can find the option for the same under Data Management in Setup.
Q10. Explain the basic idea of a skinny table.
Skinny tables are used to access frequently used fields and to avoid joins in Salesforce. Also, it will largely improve the performance. Skinny tables are highly effective, so much so that even when the source tables are modified, they will be in sync with source tables.
Q11. What is the advantage of using custom settings?
The advantage of using custom settings is that it allows developers to create a custom set of access rules for various users and profiles.
Q12. What is the definition of custom labels in Salesforce?
Custom labels are custom text values that can be accessed from Apex classes or Visualforce pages. Moreover, you can translate these values into any language compatible with Salesforce.
Q13. Why is the need to write test classes in Salesforce?
Software developers from around the world will unanimously agree that writing code in test classes makes debugging more efficient. Why? That is because test classes help in creating robust and error-free code be it Apex or any other programming language. Since Unit tests are powerful in their own right, Salesforce requires you to write test classes in Apex code.
Q14. What are some of the actions in workflow?
- Field update – Users have the ability to update a field of the same object or the fields of the parent objects which are at master side in master-detail relationship.
- Email alert – Users are allowed to send emails if the criteria meet
- New task – There is the option to create a new task
- Outbound Message – It helps in making a callout
Q15. What is the feature of list view in salesforce?
List View allows you to see a filtered list of records, such as contacts, accounts, or custom objects. Moreover, they are stored within a Custom Object component. The component can represent a custom object or a standard object, like accounts.
Q16. Is there any chance we could disable inline editing?
To enable or disable Inline editing follow the below navigation – Setup–> Customise–> User Interface–> Enable Inline Editing
Q17. How to identify if a class is a test class?
Test classes can be determined easily because every test class will be annotated with the @isTest keyword. In the same way, if any method has the keyword testMethod, it will be treated as a test method.
Q18. State some factors that indicate information loss in salesforce?
- Rapid changes in date and time.
- Changing the data types from one to another. …
- Altering from the multi-select picklist or it can be the mode of changing the checkbox, etc. to another data types.
Q19. What are the types of custom settings in Salesforce? What is the advantage of using custom settings?
There are two types of custom setting:
- List Custom Settings
- Hieriarchal Custom Settings.
Custom settings are similar to custom objects and enable application developers to create custom sets of data, as well as create and associate custom data for an organization, profile, or specific user. All custom settings data is exposed in the application cache, which enables efficient access without the cost of repeated queries to the database. This data can then be used by formula fields, validation rules, flows, Apex, and the SOAP API.
Q20. What is the difference between a Role and a Profile in Salesforce?
Roles are added optionally whereas profiles are considered to be the mandatory basic requirements needed to set up a user. Profiles help in controlling Create, Read, Edit, Delete (CRED) and other object privileges. It also involves system permission that the user carries like data export.
When considering roles, it is used for sharing records across different enterprises. It provides users with the record access that is owned by the people and works in a hierarchical fashion.
Q21. Why do we need to write test classes? How to identify if a class is a test class?
After developing an apex class or apex trigger we should write the unit tests and ensure that we are able to execute at least 75% of the lines of code. If you are moving the code from sandbox to production, you need to include all the test classes at the time of deployment and salesforce will run all the test classes which you included for the deployment.
Q22. How many callouts to external service can be made in a single Apex transaction?
A single Apex transaction can make a maximum of 100 callouts to an HTTP request or an API call.
Q23. What do you mean by lookup relationship?
In real life, you might have seen bridges. The main function of the bridge is to connect from one end to another. Similar case happens with salesforce, here when two objects are linked to each other via medium, then it is known as lookup relationship.
Q24. Can you define a transfer record in salesforce?
The word transfer itself tells you that salesforce is talking about transferring the files from one place to another. Hence in order to move a file from one destination to another. You need permission from a salesforce professional (let’s say professional 1) to transfer it to another professional (lets say professional 2)
Q25. What do you mean by audit fields?
In salesforce, a term can be used in multiple ways. In this case, audit filed are nothing but another name for standard fields.
Q26. Is it possible to call a future method from a batch class?
We cannot call one asynchronous process from another asynchronous process.
Q27. What is an external ID in Salesforce?
An external ID is a custom field which can be used as a unique identifier in a record. External IDs are mainly used while importing records/ data. When importing records, one among the many fields in those records need to be marked as an external ID (unique identifier).
Q28. What are the different types of collections in Apex? What are maps in Apex?
- List – ordered and allow duplicates
- Set – unordered and won’t allow duplicates
- Map – Key and value pair
Maps are used to store data in the form of key-value pairs, where each unique key maps to a single value.
Q29. What is Trigger.new?
Triger.new is a command which returns the list of records that have been added recently to the sObjects. To be more precise, those records will be returned which are yet to be saved to the database. Note that this sObject list is only available in insert and update triggers, and the records can only be modified in before triggers.
Q30. Is there any chance by which we can create RUS on the master object?
Yes, it is possible in a relationship called master-detail relationship. The RUS known as Roll-Up Summary fields. Their creations basically done on master records. In master record, you have the privilege RUS or better known as roll up summary fields. Once this field is created you can calculate various attributes of child records.
Q31. Name some of the kinds of apex trigger in salesforce?
When we talk about apex triggers then it can be divided into two segments the first one previous trigger and other is known as the later triggers. Please note that previous triggers can also be called as before triggers and later triggers can also be called as after triggers in case of before triggers, they have their usage in the process of updating and validating the expense of record in salesforce. A care is taken that they should not get preserved in the record.
Q32. What do you understand by S0QL proclamation in salesforce?
SOQL has its usage to put forward the queries which is responsible for recording the stuff contained in the database.com.The two kinds of SOQL Statements in salesforce are as under- The very first is Static SOQL and other is SOQL statement is called as Dynamic SOQL.
Q33. Is it possible to write test code inside of an apex class or an apex trigger?
We cannot write test code (test methods) inside of the apex trigger. From API Version 28.0, we cannot write the test methods inside of an apex class which is not decorated with @isTest. We can write test methods only in a class which is decorated with @isTest.
Q34. State the most important difference between better and setter methods?
Getters and setters are used to protect your data, particularly when creating classes. For each instance variable, a getter method returns its value while a setter method sets or updates its value. … The setter method takes a parameter and assigns it to the attribute
Q35. In salesforce what do you mean sObject?
Generic sObject means, it can be of any persisted SFDC objects type. … sObject is the name of the generic abstract type that can be used to represent any persisted object type.
Q36. How does you find how many users are there is Apex code?
You need to type a function known a userinfo.getuserid () to watch the amount of users present in apex code.
Q37. List the things that can have on page customization?
The on-page customization can have the following parameters.The first one is page layout like, another thing are Fields, Buttons, Custom Links and the last but not the least one is Related Lists.
Q38. What is Record Type?
For an object based on the Record Type, we can show different fields and different picklist values by assigning different page layouts for the record types and profiles. After creating the record type, on the record type detail page user can see all the picklist data type fields, user can edit the picklist and decide which values should display for this particular record type.
Q39. What are the types of Sandboxes?
- Developer Sandbox
- Developer pro sandbox
- Partial data sandbox
- Full copy sandbox
Q40. What is the object relationship in salesforcedotcom (SFDC)?
It is used to link custom object records to standard object records in a related list.
Q41. If required can two users share the same profile? If yes, how?
Yes, in salesforce it is possible to assign a similar profile to different people, teams, or managers. The advantage of this is that at the same time entire team or group of people can hold access to crucial data, for example, an HRM team named ‘HRM Profile’ can have access to candidates, employees, lead data, conversion ratio, etc. If someone who is at the managerial level wants access to additional data, which the others can’t access, it will require permission.
Q42. Let’s say that the two objects have been merged using the r/s which appear as a field in the secondly record. How will it appear in the primary record?
In primary record it will come as related list. Now you have to know when two objects are connected as per clients needs then the two objects behave diffenly. One behaves as custom object and the other r behaves as standard object
Q43. There are multiple bindings used in visualforce. Can you name them?
There are three types of bindings in visualforce They can be stated as action binding, component binding and data bindings. Data binding portrays all the data that is present in the controller. Action binding refers to all the action methods that are present in the controller. Finally, in case of component bindings, it refers to the process of the components that is present in visual force page.
Q44. How many different types of data can a set accumulate in salesforce?
An assemblage of six data types can be accumulated in a set. These are known as built-in Apex types, primitive types, collections, user defined types, collections, primitive types, and sObjetcs.
Q45. Out of two apex class, identify the most important difference?
The two apex class can be regarded as public class and the global class. The term global itself states that when particular information can be accessed all over the salesforce, then it can be termed as global class. In global class, you don’t need namespaces. In public class, namespace is required.
Q46. What is Governor Limits for DML statements?
Number of DML statements per transaction: 150 (as a whole including insert, update, delete and undelete)
Number of rows processed per DML statement: 10000
Q47. Will you be able to customize visualforce and Apex directly in the production org?
Visualforce can be directly customized in the production whereas Apex cannot be directly customized in the production org rather it can be changed and then deployed via the sandbox and also should meet the test coverages.
Q48. What are the inline visualforce pages?
On a record detail page we can embed visualforce pages. Assume that you are displaying inline VF page on Account record detail page. VF page should be standard controller to Account Object.
Q49. What Is The Use Of The Aura: method Tag in Lightning?
Use aura:method to define a method as part of a component’s API. This enables you to directly call a method in a component’s client-side controller instead of firing and handling a component event.
This is the first segment of our journey of 100 Salesforce Interview Questions. The second part will be uploaded on the website as soon as possible. Stay tuned with us to get all the information related to the Salesforce ecosystem
Check out the previous post here: https://mytutorialrack.com/10-most-popular-chrome-extension-for-salesforce/