Salesforce Coding Interview Questions
Q63). Have you heard of the term Batch APEX? If yes, justify your answer.
Batch APEX class in Salesforce is a powerful feature in Salesforce that enables the processing of large data sets by dividing them into smaller batches or chunks. It provides a way to handle complex operations and data manipulation in a scalable manner, improving performance and avoiding governor limits. By utilizing Batch APEX, developers can efficiently process large volumes of data and perform operations asynchronously, ensuring optimal execution and resource management.
Q64). Give an example of APEX triggers with syntax.
Q65). Define Scheduler in APEX Salesforce?
APEX scheduler invokes the APEX class and runs the same at a specific time interval. Anybody interested in scheduling class must use the scheduled interface. The syntax of an APEX Scheduler class and interface is shown in the example below –
Q66). Name the different APEX triggers in Salesforce?
An APEX Trigger is a code executed before or after the following DML operations like Insert, Delete, Update, Merge, Upsert, Undelete, etc. There are two types of APEX triggers in Salesforce.
- Before Triggers that are used to update or validate values of a record before they are saved to the database.
- Triggers are used to access field values of the records that are then stored in the database and use these values to make changes in other records.Candidates miss these types of major interview questions, make sure you do not make this mistake.
Q67). Define managed sharing in APEX?
Managed sharing in APEX is a capability that allows Salesforce developers and admins to share the resources. Specific permissions are set to manage the sharing and limit access. You are free to change the permissions whenever needed.
Q68). How to add the flows to the Visual Force pages?
Answer to salesforce coding interview questions. 66
Q69). What do you mean by multi-tenant architecture in Salesforce?
Multi-tenant architecture in Salesforce refers to a system where multiple users and applications share a single instance of the software application. In this model, each user's data and configurations are isolated and secure, while the underlying infrastructure and code base are shared. This allows for efficient resource utilization, cost savings, and streamlined updates and maintenance, making it a scalable and cost-effective solution for cloud-based applications.
Q70). What do you understand about the Appexchange directory?
A marketplace called AppExchange provides products including software, parts, and consulting services. You must be a Salesforce partner in order to publicly make your own solution accessible to potential clients. The AppExchange directory makes it simple for Salesforce users to discover and download applications so they may utilize the platform for customer relationship management (CRM) and other purposes.
Q71). How will you explain the data-driven development model in APEX?
In this development model, the app structure is defined as a ‘blueprint’ and there is no code required in the beginning. Data, objects, methods, relations, and the hierarchy can be defined as the metadata in the case of a metadata-driven development model.
Q72). Does Apex in Salesforce support DML operations?
Yes, Apex supports DML operation. It offers two ways to perform DML operations either by using DML statements or by Database class methods. It provides flexibility in performing data operations. DML statements are more straightforward to use and result in exceptions that can BE handled in your code.
Q73). What does Salesforce's Apex mean?
Apex is a highly typed OOP language that enables programmers to run transaction control statements and flow on servers running the Salesforce platform in addition to making API calls. It functions as database stored procedures and has syntax that is similar to Java. On the Lightning platform, the code can be started by triggers on objects and requests from web services.
Q74). How do permission sets work?
The user can gain access to a variety of tools and functions by using permission sets, which are collections of permissions and settings. For different users, permission sets can be utilized to increase their functional access without changing their profiles. You can develop and manage templates called permission sets that define a grouping of one or more IAM policies. Assigning AWS account access for people and groups in your company is made simpler by permission sets.
Q75). What is Salesforce Lightning?
The Salesforce Lightning platform offers resources for creating the company's cutting-edge UI and UX. Salesforce Lightning assists businesses in designing a cutting-edge user interface that increases productivity. Compared to Salesforce Classic, Salesforce Lightning has a more contemporary and user-friendly interface. It is simpler to use and increases productivity. Furthermore, Lightning gives users access to features that Classic does not, including the Einstein Analytics platform and the Salesforce1 Mobile App.
Q76). What is Lightning App Builder?
Giving your users everything they need in one place is simple with the point-and-click Lightning App Builder, which makes it simple to develop custom pages for the Salesforce mobile app and Lightning Experience. With the help of the Lightning Out technology, one may add Lightning components created on the Force.com platform to third-party programmes such as Sharepoint, SAP, Node projects on Heroku, and many more.
Q77). What is a typical profile, and what are some examples?
A standard profile is one that Salesforce assigns to its users. These profiles must abide by the Salesforce permission sets given to them and cannot be deleted. This is a significant topic to go through when you are looking for the best Salesforce interview question and answer. Here is an example- I am a person who works hard and is enthused, motivated by myself, dependable, and responsible. I am a responsible team player who can easily adjust to any difficult circumstances. I am able to work well both in a team environment as well as using own initiative. I am able to work well under pressure and adhere to strict deadlines.
Q78). What level of test coverage is necessary before deploying to production?
To deploy to production, test coverage must meet a minimum standard of 75%. The apex class or trigger cannot be deployed to production if this condition is not met. Don’t miss to go through such major topics while preparing for the Salesforce interview. 100% test coverage simply implies that you have created enough tests to cover each and every line of code in your application. Nothing more or less, just that.
Q79). How many formula fields can be created in Salesforce reports?
A report can cover up to 5 Custom Summary Formula fields. This cap cannot be raised because it is hard-coded. Increase Limits for Summary Formula Fields in Reports on the IdeaExchange is where you may submit a change request to have this limit increased in a subsequent Salesforce release.
Q80). Which framework does Lightning employ?
Component-based architecture is used by Lightning. A UI framework for creating single page applications for desktop and mobile platforms is called Lightning Components. The Lightning Web Components model and the old Aura Components model are the two programming models you can use to create Lightning components as of Spring 2019 (API version 45.0).
Q81). What is a dynamic dashboard?
Details are displayed via dynamic dashboards based on the user's security preferences. Regardless of what a viewer is authorized to view in Salesforce, dynamic dashboards can be tailored to their needs.
Q82). What is a bucket field?
A field known as a bucket field aids in classifying records in a report. It can function as in any other field to sort or filter your report. Without having to develop a custom formula field at the object level, the bucket field feature lets you quickly group values for a field in a report. A bucket is a specially made category that you establish for reporting. A Salesforce report and documentation tool is called bucketing.
Q83). Describe the queue.
A queue is used to store a predetermined collection of users and things. A queue is described as a linear data structure with open ends and FIFO (First In, First Out) execution of operations. A queue, according to our definition, is a list in which all additions are made at one end and all deletions are made at the other.
Q84). What are webservices?
Webservices is a feature that facilitates integration. Web applications that communicate with other web applications for the purpose of transferring data are known as web services. They are built on open standards (XML, SOAP, HTTP, etc.). Any programme, application, or cloud technology that offers established web protocols (HTTP or HTTPS) for interoperability, communication, and data messaging—typically XML—is considered to be a web service (Extensible Markup Language).
Q85). Describe JSON.
Q86). What is the way to erase reports from a data loader?
Reports cannot be deleted using a data loader. All you need to delete data is a CSV file with the object IDs you want to remove in one of the columns. Once you have this, follow the steps listed below. Before deleting the data in dataloader.io, you must first build a delete job.
Q87). What is a wrapper class?
A class, data structure, or abstract data type whose instances are a group of other objects is known as a wrapper or container class. A class that contains the primitive data types is known as a wrapper class (int, char, short, byte, etc). To put it another way, wrapper classes offer a means of using primitive data types—such as int, char, short, byte, and others—as objects. Under Java, there are classes like these.
Q88). Reports allow for the creation of formula fields.
With the exception of tabular reports, formula fields can be utilized in all other types of reports. The formula must be expressed as a number, a percentage, or a currency.
Q89). Is it possible to use Aura inside of a LWC and vice versa?
No, we cannot use a LWC inside an Aura component, however we may do the converse and use a LWC inside an Aura component. Flows, page components, etc. can all use LWC. Preparing for these kinds of Salesforce interview questions to crack your interview at Salesforce on the first attempt.
Q90). How many, and what size custom labels can you define?
For each organization, a minimum of 5000 bespoke labels may be produced. There are over 1000 characters on the label.
Q91). Describe Salesforce's deterministic formula fields.
The value in the deterministic formula is static or well-known. Don’t miss going through such major topics while preparing for the Salesforce interview. Custom fields called "formula fields" allow you to dynamically determine a field's value based on other fields, expressions, or values. Formula fields can be used to filter SOQL searches, just like any other field.
Q92). What is the App Launcher Namespace's user?
App Launcher is a technique that will take care of the app's appearance, visibility, and order. The AppLauncher namespace offers methods for controlling the visibility and sort order of apps in the App Launcher.
Q93). What is the policy on sharing?
Whenever a user wanted to grant access to another user, the sharing rules were put into effect. How your users share their calendars with persons outside of your organisation is governed by sharing policies. One or more sharing policy attributes, such as the sharing rules, the free/busy access level, the temporary disablement of a sharing policy, or the removal of a sharing policy entirely, may need to be changed.
Q94). What does Salesforce mean by "Data Skew"?
When working for a large firm, you will see data skew when there are more than 10,000 records, which is a condition in Salesforce. Users will therefore experience performance issues when making updates. Data skew is to blame for it happening.
Q95). What does sObject type mean?
Any item that can be kept in the Force.com platform database is referred to as a sObject. Any object may be represented using the generic sObject abstract type in Apex.
Q96). What distinguishes Apex's public and global classes?
Regardless of namespaces, global classes are available throughout the Salesforce instance.
Public classes, however, can only be accessed within their respective namespaces.
Q97). What exactly do getter and setter methods do?
Values are passed from the controller to the VF page via the get (getter) function.
On the other hand, the value is restored to the controller variable using the set (setter) method.
Q98). How many assignment rules can be active at once in a lead or case?
One rule can only be in effect at once. Don’t miss to go through such major topics while preparing for the Salesforce interview.
Q99). What is Static Resource?
Q100). What does a Salesforce API mean? How can we use it?
In order to access data from Force.com or Database.com, Salesforce has a variety of APIs. Preparing for these kinds of Salesforce interview questions to crack your interview at Salesforce on the first attempt.
Q101). What is contained in the Data Wrapper Class?
This includes collected, structured, and abstract data. This is how you should present the Salesforce answers.
Q102). Is a Method's Return Type a requirement?
Yes, a method must have a return type. Don’t miss to go through such major topics while preparing for the Salesforce interview.
Q103). For a long statement, how long is Bit Variable?
A 64-bit statement is lengthy. Preparing for these kinds of Salesforce interview questions to crack your interview at Salesforce on the first attempt.
Q104). Describe S-Control.
Q105). What does Salesforce's wrapper class mean?
A data structure, class type, or abstract data type that holds numerous collections of objects is referred to as a wrapper or container. It facilitates the table-based display of numerous objects on a VisualForce page.
Q106). What are sites for force platforms?
Applications and websites that are accessible to the general public and are directly integrated with your Salesforce business. Don’t miss to go through such major topics while preparing for the Salesforce interview.
Q107). What does Salesforce's Tab mean?
A tab is a user interface used to show users embedded web information or custom object data. In Salesforce, there are three different categories of tabs:
- Individual Tabs.
- Tabs for Visualforce.
- Online tabs.
Q108). Describe the escalation rules.
According to the guidelines outlined in the escalation rule entry, escalation rules are applied to escalation instances. For deciding what happens when the case escalates, we can also build escalation actions in addition to rule entries. A case may be transferred to a support queue or another support agent under the escalation rule.
Q109). What are the validation rules?
We can apply a certain logic rule with the use of validation rules to help maintain the data integrity within our organisation. On the object, we can specify the conditions that are not true. For instance, if the account does not contain the address, we do not want to mark the opportunity as closed.
Q110). Why is a workflow time-dependent?
Before closing the record, we do time-dependent actions at specific moments. After some time, the record is evaluated again by the workflow. Before executing the actions, it determines whether the workflow rule's requirements have been met. Preparing for these kinds of Salesforce interview questions to crack your interview at Salesforce on the first attempt.
Q111). Explain Auto-Response?
By setting up an auto-response rule, auto-responders send emails to leads or cases based on specific record attributes and swiftly address client questions or problems. We can simultaneously establish one rule for a lead and another for a case.
Q112). Explain the approval procedure.
The Approval process in Salesforce is a series of procedures for approving records. Tracking who approved something and when was that decision made is another benefit of an approval process. Various approval models, alerting approvers, and conditional logic for who has to support are all included.
Q113). Describe Change Set.
A change Set is a collection of elements that can be moved across the connected organizations (like from a sandbox to the production, sandbox to the sandbox, etc.). Don’t miss to go through such major topics while preparing for the Salesforce interview.
Q114). Can you give a high-level explanation of the software development lifecycle?
A concept called the Software Development Life Cycle outlines a step-by-step process for implementing IT systems that is considered best practise. Planning, analysis, design, implementation, testing & integration, and maintenance are some of these phases.
Q115). Apex test coverage: what is it?
Developers must achieve a minimum test coverage of 75¾fore deploying Apex that has been written in a sandbox to production. As a result, programmers must create test classes that run through their code to verify that it is of high quality and will function properly in production.
Q116). What is an Apex Trigger?
Developers create Apex Triggers to launch logic before or after a record is saved. As was previously said, Salesforce's Apex can handle even the most complicated automation scenarios.
Q117). When is Flow preferable to Apex?
Although Apex has always been king when it comes to advanced Salesforce automation tools, Salesforce has recently redesigned Flow to make it functionally near to Apex. Even Salesforce's chief technology officer, Parker Harris, has been cited as saying, "Just because it's possible to write code, doesn't mean you should write code."
Q118). What distinguishes Visualforce from Lightning Development?
Developers can utilize the Visualforce and Lightning frameworks to make unique user experiences for Salesforce.
Q119). What purpose doesserves SOQL serveSOQL?
In order to search Salesforce data while developers are building custom logic, they use SOQL, also known as Salesforce Object Query Language. Data can be retrieved from a single object or from several related objects using SOQL, which has a structure akin to SQL.
Q120). A dynamic dashboard: what is it?
Dynamic dashboards are a great method to give your users a tailored experience when viewing a particular dashboard. It enables a dashboard's data to alter depending on which user is seeing it. This is how you should present the Salesforce answers.
Q121). What is a Junction Object?
In Salesforce, many-to-many relationships are created using a junction object. When a one-to-many or a typical parent-child relationship is ineffective, this is used.
Q122). What is Salesforce Customer 360?
Salesforce has been working to develop a line of solutions that would provide platform users access to a complete 360-degree view of their customers for a number of years.
This implies that Salesforce users can view every interaction with a client, from the initial internet inquiry to the products the consumer has purchased and any problems or questions they may have with those products.
Q123). What do Salesforce validation rules entail?
The Salesforce validation rules are useful for enforcing the integrity restrictions on the data. In the formula editor, we provide a number of criteria in the validation rule such that if one fails, Salesforce checks the next condition, and so on. If all the requirements are not met, the record is saved and a suitable error message is displayed. Preparing for these kinds of Salesforce interview questions to crack your interview at Salesforce on the first attempt.
Q124). What is a sObject type?
A row of data is represented by a sObject variable, which can only be declared in Apex using the object's SOAP API name. For instance, MyCustomObject c co = new MyCustomObject c() and Account a = new Account(). Similar to the SOAP API, Apex permits representing any object with the generic sObject abstract type.
Q125). What and WhoId in activities are, exactly?
WhoID uses Lead ID or contact ID in activities and is utilized for people's things. When referencing objects in activities, WhatID uses either an Account ID or an Opportunity ID. WhoId, which is labelled as "Name" on the Task and Event objects, is utilised for our "human" objects, Contacts and Leads. WhatId is used on numerous other non-human-related objects and is noted as "Related To" on those same objects.
Q126). What level of test coverage is necessary before deploying to production?
Verified by an expert A code is deployed to production by continuous deployment. To make changes transparent to application users, continuous deployment is a software release technique in which any code update that passes automated testing is immediately pushed into the production environment. To deploy to production, test coverage must meet a minimum standard of 75%. The apex class or trigger cannot be deployed to production if this condition is not met.
Q127). How many records may a report have on a single page?
We can display 2000 records on a page using Salesforce. The option to export the records into an excel file is available if we need to display more records. The property sheet will appear after you choose the text box and click F4. On the Data tab, click. Type =Count(*) in the Control Source property box. Even though some fields in some records are null, this expression uses the Count function to count all the records in the report or group.
Q128). Can a data loader be used to erase reports?
Reports cannot be deleted using a data loader, sorry. Reports allow for the creation of formula fields.
With the exception of tabular reports, formula fields can be utilized in all other types of reports. The formula must be expressed as a number, a percentage, or a currency.
Q129). What kinds of reports are suitable for creating dashboards?
Similar to summary reports, matrix reports let you arrange and summarize data by both rows and columns. They may be utilized as the dashboard's source report. Operational, strategic, and analytical dashboard reports are available for use. Each of these facilitates decision-making for various company stakeholders.
Q130). Describe a workflow.
The series of actions required to finish a task is known as the workflow. With the exception of the first and last steps, every step in a process has a distinct step immediately before it and a distinct step immediately after it. In a linear workflow, the initial step is often started by an external event.
Q131). What does an approval procedure entail?
The approval process serves as a step-by-step manual for the user to approve a certain process. An approval process is a type of workflow which comprises a series of steps that a work must pass to be approved. The steps typically involve different departments and employees who review the work and either approve or reject it.
Q132). How can we prevent recurrent triggers? What are they?
A recursive trigger is one in which the same trigger is repeatedly called upon by the actions of another trigger. This is how you should present the Salesforce answers. A recursive trigger is one that executes an action, such as an update or insert, and then triggers itself as a result of, let's say, another action it executes, like an update. Recursion is the process of performing a task repeatedly. With Recursive Trigger, there may be a potential to reach the Governor Limit.
Q133). Describe the queue.
A queue is used to store a predetermined assortment of people and objects. Any person in the queue is able to take up and finish a work that has been allocated to it. A queue is described as a linear data structure with open ends and FIFO (First In, First Out) execution of operations. A queue, according to our definition, is a list in which all additions are made at one end and all deletions are made at the other.
Q134). What is a fusion? Explain.
Two applications are connected by integration. Many programes that are used in a company were not made or designed to interact with one another. Integration assists the business in achieving the highest levels of application quality, consistency, and efficiency.
Q135). What exactly are assertions?
The real value and the expected value are compared using assert statements. A remark that the speaker believes to be true is referred to as an assertion. Any statement can be an assertion, for example, "I assert that the best investing philosophy is core value investing." However, it is challenging to determine whether the assertion is accurate.
Q136). Describe seeAllData.
The test classes are unable to recognize the data in the database by default, therefore we must specify @isTest(seeAllData=true) in order for it to do so. SeeAllData=true is typically used to give test classes and individual test methods access to all data in the organisation, including pre-existing data that the test did not produce. This is very useful for testing code built in Salesforce.
Q137). Is it possible to use Aura inside of a LWC and vice versa?
No, we cannot use a LWC inside an Aura component, however we may do the converse and use a LWC inside an Aura component. Flows, page components, etc. can all use LWC. Because of the way the Lightning Platform is designed, we can incorporate LWC components into Aura Components and Visualforce Pages. The reverse, however, is not possible. Lighting Web Components do not support the embedding of Aura and Visualforce components.
Q138). A wrapper class: what is it?
A class, data structure, or abstract data type whose instances are a group of other objects is known as a wrapper or container class. A class that contains the primitive data types is known as a wrapper class (int, char, short, byte, etc). To put it another way, wrapper classes offer a means of using primitive data typesâ€”such as int, char, short, byte, and othersâ€”as objects. Under Java, there are classes like these.
Q139). Which framework does Lightning employ?
Component-based architecture is used by Lightning. A UI framework for creating single page applications for desktop and mobile platforms is called Lightning Components. The Lightning Web Components model and the old Aura Components model are the two programming models you can use to create Lightning components as of Spring 2019 (API version).
Q140). A bucket field is what?
A field known as a bucket field aids in classifying records in a report. It can be used in the same way as any other field to group, sort, or filter your report. Without needing to develop a custom formula field at the object level, Salesforce's Bucket Field is a useful feature that lets you quickly categorise values for a field in a report. A bucket is a specially made category that you establish for reporting. A Salesforce report and documentation tool is called bucketing.
Q141). How can we prevent recurrent triggers? What are they?
A recursive trigger is one in which the same trigger is repeatedly called upon by the actions of another trigger. An easy way to prevent this situation is to create a static variable and check its value before to running the trigger.
Q142). What are Static Resources?
Q143). What does "floating report header" mean?
When we scroll the report page, we may see the column headers that are shown on each page by using floating report headers. The header of a report is effectively frozen when it is set to "float" so that it always appears at the top of the page, regardless of scrolling. For consumers to understand what data they are viewing, the header information is always displayed, even if your report has hundreds of rows.
Q144). How is "floating report header" enabled?
In Salesforce, go to Setup=>Customize=>Reports and Dashboards=>User Interface options to enable floating report header. Users can scroll to the bottom of long reports with floating report headers without having to scroll back up to see the titles of the column headings. Users can easily sort data in a particular column by clicking the floating report headers.
Toggle the floating report header option on.
Q145). What does Salesforce.com's analytical snapshot mean?
Salesforce's analytical snapshots are used to generate reports based on old data. Salesforce describes analytic snapshots as "enabling you to periodically plan the loading of data from a Custom Report to a Custom Object." As a result, you may build Reports and Dashboards using the information in the Custom Object.
Q146). What is Workflow?
As records are produced and updated in an object, Salesforce Workflow analyses them to apply automatic processes including task assignment, emailing, field updates, and sending outgoing messages.
Q147). Time-Dependent Workflow: What is it?
Workflows that depend on time are not carried out independently. As long as the workflow rule condition is true, time-dependent processes continue to be in the workflow queue.
Q148). What workflow requirements cannot be met before "time dependent workflow action" is created?
Every time it is created and modified. When the subsequent actions occur, time-dependent actions in workflow rules cannot be added. If aif a workflow rule is in effect. when there are pending actions in the queue and the workflow rule is deactivated. when a record's workflow rule criteria are set to "generated" and "edited" respectively.
Q149). What variations were found in the possible actions while constructing a workflow for a Task?
When setting up a workflow for a task, the "Send Email" step is missing. Based on the procedures used by your company, workflow automates the following types of actions: Update the value of a field on a record with a field update. Send an email to one or more people you select using the email alerts feature. Create a new task and assign it to a user, role, or record owner.
Q150). "Drag and drop dashboard" is accessible to whom?
Users with the necessary rights can access the drag & drop dashboard. A user-friendly interface for creating dashboards using Salesforce Visualforce pages or source reports is the drag-and-drop dashboard builder. You have the choice to add charts to reports, record page layouts, and dashboards.
Q151). Which report types are suitable for dashboard elements?
Dashboard components use summary reports and matrix reports. In Salesforce, you can produce reports in four different formats: tabular, summary, matrix, and joined. Depending on what you want from a report, each one is ideally suited to display various types of data.
Q152). What kind of authorization is necessary in order to set a running user other than yourself in the dashboard?
To set the running users, the user must have "View All Data" permission. This is how you should present the Salesforce answers. The reader can access the dashboard as themselves or as anyone else in their job hierarchy if they have the user permission to View My Team's Dashboards. The reader can access the dashboard as any user with the View All Data user authorization. Press Save. Then click Save once more from the Dashboard Builder.
Q153). Who can execute Reports?
When we click on a report name in Salesforce.com, the majority of reports launch automatically. Click "Run Report" to have a report run automatically if we want to. The administrator only needs to allow this permission in the Profile's General User Permissions section when every user in the profile needs to run a report. Use Permission Set in its place to grant this permission to users with various profiles.
Q154). How effective is sales force in tracking sales?
Salesforce keeps track of all pertinent information, including the number of customers served each day, the daily sales volume, detailed reports from the sales manager, and the monthly or quarterly sales figures. Additionally, it maintains track of recurring customers, which is essential for any sales organisation to succeed.
Q155). Can a dynamic dashboard in Salesforce be scheduled?
No, a dynamic dashboard cannot be scheduled in Salesforce. This is a significant topic to go through when you are looking for the best Salesforce interview question and answer.
Q156). If an error message reads, "This list contains no rows for assignment," what does it mean?
The list you are attempting to access has no values, as shown by the error message "list has no rows for assignment.â€ When a query doesn't yield any results, the error "List has no rows for assignment to SObject" appears. When an erroneous quote process ID is present in the Quote's Quote Process ID field, the error "List contains no rows for assignment to SObject" will appear. This field is designed to have a workflow rule fill it with data.
Q157). List the elements that can be changed in page designs?
A variety of page layout elements, including fields, buttons, custom links, and related lists, are customizable. Sections can also be made. The page layout editor consists of two main components: the record's page layout on the lower portion of the screen, and a palette in the upper part of the screen (2). The palette provides the fundamental components that you can add and arrange on your website, including fields, actions, buttons, links, and related lists.
Q158). What is "Self Relationship" ?
A lookup relationship to the same object called a self relationship. Consider the concept of "Merchandise." Here, we can establish a connection between objects that are same in type and Account to Account. This is referred to as "Self Relationship."
Q159). What are the primary factors that must be taken into account in the "Master-Detail Relationship"?
The parent determines record level access; mandatory on the kid for the parent's reference; cascade delete (if you delete the parent, it can cascade delete the child).
Q160). What distinguishes SOQL and SOSL?
SOQL(Salesforce Object Query Language) (Salesforce Object Query Language) We can only search on one object at a time while using SOQL. Any field of any datatype is available for querying. Classes and triggers both support SOQL. SOSL(Salesforce object Search Language) (Salesforce object Search Language) We can search over numerous things at once using SOSL. Only fields with the data types text, phone, and email are available for querying.
Q161). How do insert() and database.insert() vary from one another?
We can insert records using the insert method, but if any errors are found in any of the records, the system will throw an error, causing no data to be inserted. We will utilize database.insert to partially execute a successful bulk insert operation.
Q162). Differentiate between Force.com and Salesforce.com.
Both are essentially the same, but they function differently.
Salesforce.com assists in the development of CRM-functionality-based applications, such as an iPhone "app" that stores contact information, places calls, and performs all other typical phone operations.
A data model and user interface, such as an iPhone OS environment that can be used to create and execute apps, can be customized using Force.com.
Q163). What do Governor Limit mean in Salesforce?
Governor Limits in Salesforce help you limit the amount of information or records you can store in the shared databases. Salesforce stores data from various clients in a single database.Â This is a significant topic to go through when you are looking for the best Salesforce interview question and answer.
Q164). How come different domains are used to serve Visual force pages?
You can serve from a variety of domains with the use of visual force pages. It enables you to raise security protocols and aids in the prevention of cross-site scripting.
Q165). How does Salesforce use bucket fields?
In Salesforce, bucket fields can be used to organise items based on their field values. On the Salesforce platform, these fields are, however, never created and are only present in the report section.
Q166). Can getter and setter methods be written in Salesforce?
Yes, we can programme the getter method in Salesforce to retrieve a variable's value from visual force pages and the setter function to change the value of that particular variable.
Q167). How can users be frozen or deleted in Salesforce.com?
Salesforce.com does not allow for the deletion of users, although the Freeze option can be used to deactivate a user.
Go to: to "freeze" a user.
Settings > User Management > Users
Q168). What is Field Dependency?
Field Dependencies are filters in Salesforce that allow users to edit their content and manage how one field's value is dependant on another field's value. In Field Dependency, there are two additional fields that are.
Â This is a significant topic to go through when you are looking for the best Salesforce interview question and answer. Â
Q169). What does Salesforce's Workflow mean?
Salesforce workflow is business logic that enables you to automate the routine activities and procedures of your firm, saving you a substantial amount of time.
Q170). Who has access to the dashboard with drag and drop?
The drag-and-drop dashboard is accessible to those who have managed dashboards. The term "drag and drop analytics" describes embedded analytics and business intelligence (BI) solutions that let both technical and non-technical people quickly access and analyze data, as well as create dashboards and bespoke reports using a visual drag and drop interface (UI).
Q171). What is a Casean Case Team? (EE/UE)
Case teams allow for open communication and teamwork while resolving client difficulties. A case team is a group of users onusers whoÂ on a case, such as contacts or partners. A product manager, a support representative, and a support manager, for instance, might be on your case team.
Q172). Describe folders.
They are used to arrange papers, reports, dashboards, and email templates Access is explicit and does not roll up through the role hierarchy. It is defined as either Read or Read/Write. You may save documents, email templates, dashboards, reports, and more in folders. Folders can be read-only or read/write and can be made public, hidden, or shared. In accordance with roles, permissions, public groups, and licencing kinds, you can manage who has access to its contents.
Q173). What is Workflow?
With Salesforce Workflow, you can automatically: Make and send email notifications Make tasks and assign them replace field values with formulas or particular values as needed. Create and send API messages that are outgoing. Create and carry out time-based actions.
Q174). Describe Salesforce's deterministic formula fields.
The value in the deterministic formula is static or well-known. Deterministic Formula Field Custom Indexes Custom fields called "formula fields" allow you to dynamically determine a field's value based on other fields, expressions, or values. Formula fields can be used to filter SOQL searches, just like any other field.
Q175). Who or what is the App Launcher Namespace's user?
App Launcher is a technique that will take care of the app's appearance, visibility, and order. The AppLauncher namespace offers methods for controlling the visibility and sort order of apps in the App Launcher. The namespace for the AppLauncher contains the following class. Contains instructions for customising how apps show in the App Launcher. represents the Experience Cloud website's logo.
Q176). What is the policy on sharing?
Whenever a user wanted to grant access to another user, the sharing rules were put into effect. How your users share their calendars with persons outside of your organizationorganisation is governed by sharing policies. One or more sharing policy attributes, such as the sharing rules, the free/busy access level, the temporary disablement of a sharing policy, or the removal of a sharing policy entirely, may need to be changed.
Q177). Justify the visibility enum.Â
When a cached value is said to be visible, it means that it is either visible in all namespaces or just the namespace in which it was cached. An enum is an abstract data type whose values can only be one of a limited number of predefined identifiers.
Q178). What function does a static resource provide in Salesforce?Â
Q179). PermissionSet definition
A permission set, or permissionset, is a collection of permissions that can be used to provide one or more users greater access without modifying or reassigning their profiles. You can develop and manage templates called permission sets that define a grouping of one or more IAM policies. Assigning AWS account access for people and groups in your company is made simpler by permission sets.
Q180). Explain SaaS.
Software as a Service (SaaS) allows us to construct applications without having to buy the necessary software outright by using a cloud service. Web services and service-oriented architecture are supported by SaaS.
Q181). What data management features does Salesforce offer?
Two data management tools are provided in Salesforce, and they are as follows:
- Wizard for Data Import
- Loader of Data
Q182). What is Field Dependency?
Field Dependencies are filters in Salesforce that allow users to edit their content and manage how one field's value is dependentdependant on another field's value. Filters called field dependencies let us modify a picklist's items dependent on the value of a different field. You can restrict the values that are displayed based on a value for another field, like Zone, rather than showing every possible value for Region in a single picklist.
Q183). What is a Workflow Alert?
This is an email that was sent to multiple recipients as a result of a workflow rule or approval procedure in Salesforce. Workflow Rules are automated procedures that cause a particular action to be taken when a given event takes place, such as changing a field on a particular object or adding a new record. One of the activities that can be brought on by an occurrence is an automated email alert.
Q184). What permission is needed if you want to set a running user on your dashboard other than yourself?
In this case, "View All Data" access is needed in order to add another running user to the dashboard. The reader can access the dashboard as themselves or as anyone else in their job hierarchy if they have the user permission to View My Team's Dashboards. The reader can access the dashboard as any user with the View All Data user authorization. Press Save. then click Save once more from the Dashboard Builder.
Q185). Can the reports be deleted by using Data Loader Tools?
Reports in Salesforce cannot be deleted by Data Loader tools also. You can only use Dataloader to extract report data. If the report object is accessed by Dataloader or another api tool, it is a ReadOnly object.
Q186). What, in your opinion, is the ideal methodmethods for formulating Contact Sharing Rules?
Throughout the whole organizationorganisation, the default settings are used for the read, read/write, and write rights. Keep the total number of ownership-based sharing rules per object at 100, and the total number of criteria-sharing rules per object at 50, as a best practicepractise. If a user has access to a record under more than one sharing rule, the user receives the access level with the most latitude.
Q187). What is a Standard Profile?
Every Salesforce org uses standard profiles, which make it possible to alter settings. Users may be given standard profiles in some organizations, but they will not be able to access or alter them, such as in Contact Manager and Groups Editions, where it is not feasible to create a custom profile.
Q188). What does an approval procedure entail?
The approval process serves as a step-by-step manual for the user to follow in order to approve a certain process. A sort of workflow known as an approval process consists of a number of processes that a piece of work must pass through in order to be authorized. Different departments and individuals are often involved in the phases, who examine the work and either accept or reject it.
Q189). Describe the queue.
A queue is used to store a predetermined collection of users and things. Any person in the queue is able to take up and finish a work that has been allocated to it.
Q190). Is it possible to use Aura inside of a LWC and vice versa?
No, we cannot use an LWC inside an Aura component, however, we may do the converse and use an LWC inside an Aura component. Flows, page components, etc. can all use LWC.
Q191). How can we customize a Salesforce instance? What programming languages are available?
Apex is a server-side language with a Java-like syntax that is used to customize Salesforce. Java is a good place to start if you want to code in Salesforce utilizing utilising the programming languages Apex (custom code) and Visualforce (user interface). The programming language Java is popular across many platforms and OSs, including Windows, Linux, and Mac OS.
Q192). What is the release model for Salesforce?
Salesforce releases significant upgrades three times per year, in the spring, summer, and winter. Although the exact dates for these vary, sandbox instances are updated to enable for testing of any adjustments in an org 4-6 weeks prior to a release.
Q193). What is an Apex global class?
A global Apex class is an Apex class that has the global access modifier in its declaration. This indicates that any Apex code executing in any namespace can see and use the class.
Q194). How can our Apex code be debugged?
We can produce debug logs for the executed code while the Apex code executes. These logs give information about what transpired during execution, about any exceptions that were thrown, and about anything that was passed to the System. debug() function call.
Q195). How are we going to interface with outside REST web services?
We typically use HTTP callouts to invoke external APIs when interfacing with REST web services that are external to us. This is a significant topic to go through when you are looking for the best Salesforce interview question and answer.
Q196). How can Salesforce link with an outside system?
Salesforce's integrated REST API is available for simple interfaces with external applications. This could be used for record creation, updating, or querying for custom or more specialized incoming integrations.
Q197). What distinguishes Aura components from Lightning Web Components?
Q198). How can we make our Apex code enforce Sharing Rules?
We can utilize the sharing keywords in the definition of our class. When we need code that should handle this dynamically, we may also use the inherited sharing keywords, which inherits the sharing modifier from its calling class.
Q199). What is a roll-up summary field?
Special fields called roll-up summary fields are found on the master side of a master-detail relationship. These fields' values are calculated using an aggregate of the relationship's detail side; this might be anything from the total number of records to the sum of a field value.
Q200). Describe dynamic Apex.
Using the Dynamic Apex approach, we may access sObjects and fields within our code dynamically rather than decoratively, increasing the flexibility of our code. Metadata information about sObject and field properties is provided via the Describe information. For instance, the describe information for a sObject comprises the sObject's name, label, fields, and child objects, as well as whether that type of sObject allows operations like create and undelete.
Q201). Describe webservices.
Webservices is a feature that facilitates integration. Web applications that communicate with other web applications for the purpose of transferring data are known as web services. They are built on open standards (XML, SOAP, HTTP, etc.). This is how deal with such commonly asked interview questions.
Q202). What makes a trigger different from a process builder?
In Apex, the trigger is a code-based evaluation of criteria that establishes a series of events. When a condition is met, the Process Builder assesses the criteria and takes the appropriate action. Inquire about the candidate's use of these in the past, including instances from their development experience.
Q 203). Which restrictions apply when using WhoId and WhatId in Salesforce? How are those to be avoided?
It's possible that a novice developer has never had to adapt around objects that use these particular relationship fields. Knowing how they respond in this circumstance reveals their level of experience.
Q204). What is a Sandbox?
A Sandbox is a testing environment for code in the development context before it is applied in production. Users can execute applications or browse files in a sandbox, an isolated testing environment, without having any negative effects on the platform, system, or application on which they are running. Sandboxes are used by software developers to test new computer code.
Q205). What purpose does an outbound message serve?
When a record is created or updated in Salesforce, an outbound message is an automation feature that enables delivering a message to external web services or an application. Field values from these external web services may provide instructions for starting other operations in external systems.
Q206). Can two users share the same profile, if necessary?
It is possible to give many individuals, teams, or managers a similar profile in Salesforce. The benefit of this is that the entire team or group may work together simultaneously.
Q207). What is the app menu in Salesforce?
The app menu in Salesforce is a feature available in the Salesforce Classic interface. It is a dropdown menu located in the upper-right corner of every page. The app menu provides quick access to various apps and functionalities within Salesforce. If the App Launcher is enabled, it will be listed in the app menu, allowing users to easily navigate and switch between different apps and tools within their Salesforce org.
Q208). What type of apps can be created in SF?
Salesforce mainly creates standard apps for Sales and Services. You can also build custom apps by grouping different items (as per project requirements). Salesforce mainly creates two types of Apps.
Custom app: This type of app is generally used in every business scenario. It is widely popular in the market.
Console app: This type of app can be used only for client service business purposes, which is more focused on solving the client’s issues & meeting their requirement. It is not that frequently used in the market.
Q209). Can you provide an example of a custom App that can be built on the Salesforce platform?
A custom App that can be built on the Salesforce platform is a project management application designed to help teams track tasks, milestones, and project progress. It includes features such as task assignment, deadline tracking, and collaboration tools.
Q210). What is the distinction between data and metadata in Salesforce?
In Salesforce, data refers to the actual records stored in the system, such as customer information, sales data, and product details. On the other hand, metadata refers to the information that describes the structure and configuration of the Salesforce org, including fields, objects, workflows, and page layouts.
Q211). Explain the concept of a skinny table in Salesforce and its considerations.
A skinny table in Salesforce is a denormalized table that contains a subset of frequently accessed fields from one or more standard or custom objects. It is utilized to enhance performance for specific operations, such as list views and reports, by reducing the need for joins. Considerations for skinny tables include data synchronization, table size, and query optimization.
Q212). What are the different types of email templates available in Salesforce?
The different types of email templates in Salesforce are HTML with letterhead, custom HTML, and text templates. HTML with letterhead templates are restricted to administrators and users with specific permissions, and they are based on a letterhead. Custom HTML templates can be created by users and administrators with permissions, also based on a letterhead. Text templates are accessible to all users in the organization and can be modified by anyone.
Q213). Define custom labels in Salesforce and specify the character limit for a custom label.
Custom labels in Salesforce are used by developers to create multilingual applications that can represent information to users in their preferred language. Custom labels allow for customization of values and provide localization capabilities. The character limit for a single custom label is 1,000 characters, excluding those created from managed packages, which are exempt from this limit.
Q214). What are the three types of bindings used in Visualforce and what do they refer to?
The three types of bindings used in Visualforce are data bindings, component bindings, and action bindings. Data bindings refer to variables or data sets in the controller that are accessed and displayed in the Visualforce page. Component bindings are used to reference Visualforce components within the page. Action bindings are used to trigger action methods in the controller when a user interacts with the Visualforce page.
Q215). What are the different types of collections in Apex, and what is a map in Apex?
The different types of collections in Apex are List, Map, and Set. Lists are ordered collections of elements accessed by their indices. Maps are collections of key-value pairs, allowing for fast lookup of values based on specific keys. Sets are unordered collections of unique elements, useful for eliminating duplicate values and performing set operations.
Q216). How can a Visualflow be embedded in a Visualforce page?
To embed a Visualflow in a Visualforce page, you first need to obtain the API name of the flow. Then, create a new Visualforce page and add the flow:flowName component between the apex:page tags. Save the Visualforce page and, if necessary, restrict access to specific profiles through the Visualforce page's security settings. Finally, add the Visualforce page to your application using a custom link or button.
Q217). What are the different methods of a Batch Apex class?
The different methods of a Batch Apex class in Salesforce are the Start Method, Execute Method, and Finish Method. The Start Method is called at the beginning of the Apex job and returns the records or objects to be processed. The Execute Method is called for each batch of records and performs the actual processing logic. The Finish Method is called after all batches have been processed and allow for post-processing operations, such as sending email notifications.
Q218). Why are Visualforce pages served from a different domain?
Visualforce pages are served from a different domain in order to enforce security measures and maintain control over customizable and non-customizable elements in the Salesforce platform. Separating Visualforce pages into different domains helps ensure the integrity and protection of the Salesforce environment.
Q219). Why are Visualforce pages served from a different domain?
Visualforce pages are served from a different domain primarily for security reasons. By hosting Visualforce pages on a separate domain, Salesforce can ensure better control over customizable and non-customizable components, reducing the risk of cross-site scripting (XSS) attacks and maintaining the integrity of the Salesforce platform.
Q220). What is the distinction between WhoId and WhatId in activities?
In activities, WhoId is used to identify the person-related object, such as a Lead ID or Contact ID, associated with the activity. On the other hand, WhatId is used to identify the object-related item, such as an Account ID or Opportunity ID, associated with the activity. These IDs help establish relationships and provide context to the activities within Salesforce.
Q221). Can you create a roll-up summary field for a Master-Detail relationship?
Yes, a roll-up summary field can be created for a Master-Detail relationship in Salesforce. Roll-up summary fields are not available for lookup relationships. These fields allow you to calculate values based on related records, aggregating information such as the count, sum, minimum, or maximum from child records to display on the parent record.
Q222). Provide examples of non-deterministic Force.com formula fields.
Non-deterministic Force.com formula fields include fields that incorporate dynamic data functions like TODAY() or NOW(), as these functions return different values depending on the current date and time. Lookup fields that reference other entities or records are also considered non-deterministic because their values can change based on the referenced records.
Q223). Explain the concept of "Data Skew" in Salesforce.
Data skew refers to an uneven distribution of records in Salesforce, particularly in situations where a large number of child records are associated with a single-parent record. This can lead to performance issues and lock contention, impacting system performance and scalability. Data skew is usually observed when more than 10,000 child records are related to a single-parent record.
Q224). What are governor limits in Salesforce?
Governor limits in Salesforce are predefined limits and restrictions imposed on the code and resources used in the Salesforce platform. These limits are only placed to ensure the efficient use of shared resources as well as help maintain the overall performance.
Q225). What are SOQL and SOSL, and what are the differences between them?
SOQL (Salesforce Object Query Language) is used to construct queries for searching Salesforce objects, similar to SQL. It will allow the user or you to query and retrieve specified records as well as helios in supporting DML operations on the returned records.
Q226). How do permission sets differ from sharing rules?
Permission sets and sharing rules serve different purposes in Salesforce: Permission sets: Permission sets are collections of settings and permissions that can be assigned to users to extend their functional access without changing their profiles. They provide additional permissions and access to various tools and functions within the Salesforce org.
Q227). What is a bucket field?
A bucket field is a field used for categorizing or grouping records in a report. It allows you to define criteria or ranges to classify records into different buckets based on specific field values. Bucket fields are helpful for organizing and summarizing data in reports, providing a more streamlined view of the information.
Q228). How do Standard and Custom reports differ?
Standard reports in Salesforce are pre-built reports that are automatically generated when creating objects and relationships. These reports offer standard functionalities and predefined fields, making them readily available for users. Custom reports, on the other hand, can be created by administrators or users with the necessary permissions. They provide more flexibility and allow for customization by specifying additional fields, filters, and grouping options beyond the standard report templates. Custom reports can also incorporate data from up to four related objects.
Q230). What is a dashboard?
A dashboard in Salesforce is a visual representation of reports and key metrics. It provides a consolidated view of data in the form of charts, tables, and graphs. Dashboards can be customized to suit individual user preferences or standardized for all users.
Q231). What is a dynamic dashboard?
A dynamic dashboard is a type of dashboard that displays data based on the user's security settings and access permissions. It adjusts the displayed information dynamically to show only the data relevant to the user. Unlike static dashboards, which have a fixed view for all users, dynamic dashboards personalize the data based on individual user roles and privileges.
Q232). How many records can be displayed on a single page in a report?
In Salesforce, a single page in a report can display up to 2,000 records. If more records need to be shown, exporting the data to an Excel file or using pagination options can help accommodate larger data sets.