Question:- What is an Apex transaction?
Answer:- An Apex transaction represents a set of operations that are executed as a single unit. These operations include DML operations that are responsible for querying records. All the DML operations in a transaction either get completed successfully or get rolled back completely if an error occurs even in saving a single record.
Question:- What is the difference between public classes and global classes in Salesforce Apex?
Answer:- A global class is accessible across the Salesforce instance, irrespective of namespaces. Whereas, public classes are accessible only in the corresponding namespaces.
Question:- What are getter and setter methods?
Answer:- The 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 the controller variable.
Question:- Which fields are automatically indexed in Salesforce?
Answer:- The following fields are automatically indexed in Salesforce: • Custom fields marked as an external ID or a unique field • Primary keys (ID, Name, and Owner fields) • Audit dates (such as SystemModStamp) • Foreign keys (Lookup or Master-Detail relationship fields)
Question:- A time-dependent workflow action cannot be created for which workflow?
Answer:- A time-dependent workflow cannot be created for ‘created, and every time it’s edited.’
Question:- What is a sandbox in Salesforce? What are the types of Sandboxes available?
Answer:- A sandbox is a similar copy of a Salesforce production for testing, development, and training. The content and size of a sandbox may vary depending on the type of the sandbox and the edition of the production organization which is associated with the sandbox. There are four types of sandboxes available: • Developer Sandbox • Developer Pro Sandbox • Partial Data Sandbox • Full Sandbox
Question:- What is Apex class?
Answer:- An Apex class is a template from which Apex objects can be created. These classes consist of other classes, variables, user-defined methods, exception types, and the static initialization code.
Question:- What is Salesforce CRM?
Answer:- It is a cloud-based CRM that doesn’t require IT experts to set up or manage the cloud. One can simply log in and connect to the customers directly. The CRM Salesforce system is a well-organized platform that provides information to its customers from different sources. It is a customer-centric system that integrates customers’ information for an organization’s benefit.
Question:- What is Salesforce Lightning?
Answer:- Salesforce Lightning is a platform that provides tools to every organization to build next-generation UI and UX in Salesforce. Lightning creates a modern productivity-boosting user experience. It is used to create a fast, beautiful, and unique user experience, just like real lightning, so that sales teams can sell their products faster. Lightning Experience uses an open-source Aura framework. It is a completely re-designed framework to create a modern user interface.
Question:- Why use Batch Apex instead of Normal Apex?
Answer:- There are various reasons why Batch Apex is better than Normal Apex. • A Normal Apex uses 100 records per cycle to execute SOQL queries. Whereas, a Batch Apex does the same in 200 records per cycle. So, it is very fast when the execution of SOQL queries is considered. • A Normal Apex can retrieve 50,000 SOQL queries, but in Batch Apex, 50,000,000 SOQL queries can be retrieved. • A Normal Apex has a heap size of 6 MB; whereas, a Batch Apex has a heap size of 12 MB. • When executing bulk records, Normal Apex classes are more vulnerable to encountering errors as compared to Batch Apex. The latter is normally error-less.
Question:- How can you call an Apex class in Salesforce?
Answer:- Ways to call an Apex class in Salesforce are as follows: • From the Visualforce page • From Developer Console • From JavaScript links • By using a trigger • From another class • From home page components
Question:- How will you create a many-to-many relationship?
Answer:- A many-to-many relationship can be created by using a junction object. A Junction object is a custom object that has two Master–Detail relationships.
Question:- What are the different types of Reports available in Salesforce?
Answer:- Based on the structural differences, Salesforce has four different types of reports: • Tabular Report: A tabular report displays data in the form of an Excel-like table that provides a list of items with the grand total. • Joined Report: A joined report is a combined report having multiple blocks that show data from different reports, either of the same or of different report types. • Matrix Report: A matrix report works for 2-dimensions and allows to group records row-wise and column-wise. • Summary Report: In a summary report, the view is in a table form only, but it has more functionalities like grouping rows (only), viewing subtotals, and creating charts.
Question:- How does Salesforce track sales?
Answer:- There are unique procedures followed by every company for tracking their sales. Various companies track the performance of sales by data analysis. The tracking system of Salesforce allows companies to collect basic details for evaluating the performance, such as: • Customers who are served daily • Number of daily sales • Day-to-day report of sales from Sales Managers • Sales figures on a weekly, monthly, or quarterly basis, depending on organizations’ needs • Details of the repeat customers who serve as the key factor for the growth of any organization
