Salesforce Developer Interview Questions
Category: Salesforce Posted:Jun 01, 2017 By: Serena JoshSalesforce is highly scalable and flexible CRM structure, delivered through the cloud or Software as a Service (SaaS). Many cloud-based products like, Sales Cloud, Service Cloud, Force.com are offered by Salesforce.com. Salesforce is responsible for collaborating community, service, sales and marketing, analytics using its cloud platform. Salesforce enables sales representatives to get more leads, close more deals, expedite productivity and make insightful decisions that matter most to grow their business.
1. Explain what is salesforce?
Salesforce is a CRM delivered as a software-as-a-service (SaaS).
2. Explain what is a custom object in Salesforce?
Custom objects are nothing but database tables. It stores data related to your company in Salesforce.com. Once you have defined custom object you can do following things like:
- Create custom fields
- Associate the custom object with other records
- In custom related lists, it display the custom object data
For custom object, records track events and tasks
Build page layouts - For the custom, object create a custom tab
- To analyze custom object data create dashboards and reports
- Share your custom tabs, custom apps, custom objects and any other related components
3. Explain what is object relationship overview?
Object relationship overview in Salesforce is used to link custom object records to standard object records in a related list. In simple words, it is helpful to track product defects associated with customer cases. You can define different types of relationship by creating custom relationship fields on an object.
4. Mention changing what may cause data loss?
Data loss may cause due to following reasons
- Changing data and date-time
- Altering to percent, from number and currency from other data types
- Changing from multi-select picklist, checkbox, auto number to other types
- Altering to multi-select picklist from any type except picklist
- Changing to auto-number e ext
- Changing from text-area to e-mail, phone, URL and text
5. How can SaaS be helpful to Salesforce?
As SaaS is a subscription based, customers can always choose not to renew if they are dissatisfied Customers can avoid a large initial investment in an IT infrastructure and day to day hustle of maintaining infrastructure
SaaS customer provides same provider infrastructure and also easy integration
SaaS applications use a simple internet interface that makes easier for the customer to use. SaaS always provide the latest platform to the customer with innovation.
6. How is Salesforce useful in tracking sales?
Salesforce records all the basic details like the number of customers served daily, daily sales volume, sales manager detailed reports, sales numbers in each month or quarter. Also, it keeps a track on the repeat customer, which is key to success for any sales organization.
7. Mention how many relationships is included in SFDC and what are they?
There are two types of relationships:
- Master-detail relationship
- Lookup relationship
8. Mention what is the difference between isNull and isBlank?
- isNull: It supports for number field
- isBlank: It supports for Text field
9. Explain what is the trigger?
Trigger is a code that is executed before or after the record is updated or inserted
10. Mention what is the use of the static resource in Salesforce?
With the help of static resources, you can upload zip files, images, jar files, JavaScript and CSS files that can be referred to a visual force page. The optimum size of static resources for an organization is 250 MB.
11. Mention what is the difference between force.com and Salesforce.com?
Force.com is PaaS (Platform as a Service) while Salesforce.com is SaaS ( Software as a Service).
12. Mention what are the actions available in the workflow?
Actions available in workflow are
• Email Alert
• Task
• Field Update
• Outbound Message
Want to Know More about Salesforce? Click here
13. Explain what is the limit of data.com records that can be added to Salesforce?
A user can see their limit from setup, by clicking data.com Administration/Users. From the data.com users section, a user can see their monthly limit and how many records are exported during the month.
14. Mention what are the different types of custom settings in Salesforce?
Different types of custom settings in Salesforce includes
• Hierarchy type
• List type
15. Mention what are the three types of object relations in Salesforce?
Different types of object relations in Salesforce includes
• One to many
• Many to many
• Master detail
16. Mention what are the different types of reports available in Salesforce?
Different types of reports available in Salesforce are:
• Tabular Report: It displays the grand total in the table form
• Matrix report: It is a detailed report in which the grouping is done based on both rows and columns
• Summary report: It is a detailed form of the report in which the grouping is done based on columns
• Joined report: With this two or more reports can be joined in the single reports
17 Is it possible to schedule a dynamic dashboard in Salesforce?
No, it is not possible to schedule a dynamic dashboard in Salesforce.
18. What does it indicate if an error state this “list has no rows for assignment”?
The error that tells “list has no rows for assignment” indicates that the list you are trying to access has no values in it.
19. Explain what the junction object is and what is the use?
Junction objects are used to build many-to-many relationships between objects. You can take a recruiting application example, where a position for a job can be linked to many candidates and in the same manner, a candidate can be linked to the different positions. So, to connect this data model, you need a third party object, this object is referred as junction object. Here “job application” is the junction object.
20. Explain what is Audit trail?
Audit trail function is helpful in knowing the information or track all the recent setup changes that the administration does to the organization. It can store last 6 months data.
21. Explain what is dashboard?
The dashboard is the pictorial representation of the report, and we can add up to 20 reports in a single dashboard.
22. Explain how many controllers can be used in a visual force page?
As Salesforce comes under SaaS, one can use only one controller and as many extension controllers.
23. Mention what is the difference between SOQL and SOSL?
• SOQL ( Salesforce Object Query Language) SOSL (Salesforce Object Search Language)
• Only one object at a time can be searched
• Query all type of fields
• It can be used in triggers and classes
• DML operation can be performed on query results Many objects can be searched at a time
• Query only e-mail, phone and text
• It can be used in classes but not in triggers
• DML operation cannot be performed on search result
24. What is the difference between a standard controller and a custom controller?
A standard controller in Apex inherits all the standard object properties and standard button functionality directly. It contains the same functionality and logic that are used for standard Salesforce pages.
Custom controller is an Apex class that implements all of the logic for a page without leveraging a standard controller. Custom Controllers are associated with Visualforce pages through the controller attribute.
25. What are the three types of bindings used in Visualforce? What does each refer to?
There are three types of bindings used in Salesforce:-
- Data bindings, which refer to the data set in the controller
- Action bindings, which refer to action methods in the controller
- Component bindings, which refer to other Visualforce components.
Data bindings and Action bindings are the most common and they will be used in every Visualforce page.
26. What is a Visualforce component?
A Visualforce Component is either a predefined component (standard from the component library) or a custom component that determines the user interface behavior. For example, if you want to send the text captured from the Visualforce page to an object in Salesforce, then you need to make use of Visualforce components. Example: <apex:detail>
27. What is an sObject type?
An sObject is any object that can be stored in the Force.com platform database. Apex allows the use of generic sObject abstract type to represent any object.
For example, Vehicle is a generic type and Car, Motor Bike all are concrete types of Vehicle.
In SFDC, sObject is generic and Account, Opportunity, CustomObject__c are its concrete type.
28. What is an Apex transaction?
An Apex transaction represents a set of operations that are executed as a single unit. The operations here include the DML operations which are responsible for querying records. All the DML operations in a transaction either complete successfully or if an error occurs even in saving a single record, then the entire transaction is rolled back.
Know More about Salesforce with Live Webinar
29. What are getter methods and setter methods?
Get (getter) method is used to pass values from the controller to the VF page.
Whereas, the set (setter) method is used to set the value back to controller variable. I hope this set of Salesforce interview questions will help you ace your job interview. As the next step for your career, check out the various certifications offered by Salesforce here: Salesforce Certifications. It will also help you to understand the job roles and chalk out a career path for yourself.
30. What are the Best Practises for Improving Visualforce Performance?
1. The view state size of your Visualforce pages must be under 135 KB. By reducing your view state size, your pages can load quicker and stall less often.
2. Large page sizes directly affect load times. To improve Visualforce page load times:
• Cache any data that is frequently accessed, such as icon graphics.
• Avoid SOQL queries in your Apex controller getter methods.
• Reduce the number of records displayed on a page by adding filter condition in SOQL
3. Reduce Multiple Concurrent Requests: use <apex:actionpoller>
4. By using the with sharing keyword when creating your Apex controllers, you have the possibility of improving your SOQL queries by only viewing a dataset for a single user.
5. Preventing Field Values from Dropping Off the Page.