May 24, 2024

Interview Questions and Answers for Salesforce for New and Experienced Candidates

  1. Describe Salesforce.

Businesses may streamline their marketing, sales, and customer support processes with the help of Salesforce, a cloud-based CRM platform. It offers a set of features and solutions that help businesses automate operations, improve team collaboration, and simplify their procedures. Salesforce is mostly used for managing customer data and interactions. A centralized database can be used by organizations to store and track client data, including contact details, communication history, and purchasing preferences.

  1. Can you tell me what a Salesforce Custom Object is?

A custom object is an item you make in Salesforce to hold information that is particular to your company and its operations. Accounts, Contacts, Opportunities, and Cases are some of the standard objects that come with Salesforce. These objects are made to meet the usual business demands. To make Salesforce work better for your business, though, you may add on to its features with custom objects.

  1. In what ways can a user make use of a Custom Object?

With the use of a custom object, Salesforce users are able to:

  • Keep records that are pertinent to their company’s operations.
  • Make your own fields to store specific kinds of data.
  • Create layouts for pages that are easy for users to navigate.

To organize data, you must first create associations with other things.

  • Establish criteria for data validation to guarantee its accuracy.
  • Utilize workflows and triggers to establish automation.
  1. How does Salesforce’s Self Relationship feature work?

A self-connection is a relationship that is created between records of the same object in Salesforce. In other words, it’s possible for two records inside the same object to have a relationship. Hierarchical structures or records relating to the same object can be represented using self-relationships.

A self-connection is defined when one record of an item refers to another record of the same object through an internal field, such as a custom lookup or master-detail relationship. Using this custom field, you can link one record to another inside the same object.

  1. If Salesforce loses data, what could be the reason?

Accidental deletion, faulty data import, faulty programming, integration problems, system flaws, user error during data migration, API or bulk data operations, and incorrectly configured data retention policies are all potential causes of data loss in Salesforce. Best practices, including testing before to deployment, validation rules, access controls, and regular backups, can help prevent data loss.

  1. How are workflows and triggers different?

While both workflows and triggers are automation features in Salesforce, they are not interchangeable and have separate functions:

Apex code snippets called “triggers” are used to initiate actions on Salesforce records before or after certain database-related events (such as insert, update, delete, etc.) take place.

The goal of using triggers is to enable developers to set up complicated activities, including updating linked records, validating data, or sending email notifications, in response to certain events that occur on records.

Apex is Salesforce’s programming language, and triggers developed in it can manage complicated processes, giving them great flexibility and personalization options.

Declarative automation tools called workflows allow you to set rules and actions that will be executed when certain record conditions are satisfied.

Goal: Compared to triggers, workflows are easier to utilize and are best suited for basic automated tasks. Field updates, email notifications, task creation, and outbound message delivery are just some of the automatic tasks that can be set up using these.

Flexibility: Workflows offer code-free automation, but they’re not as flexible as triggers. While they work well for simple activities, triggers may be better suited to cope with complicated reasoning.

  1. How does differ from, or “Salesforce,” is Salesforce’s CRM platform that is accessible through the cloud. Businesses utilize it to manage several aspects of customer relationship management, including sales, marketing, and customer care. It is considered one of the top CRM solutions worldwide. With, businesses can automate sales processes, keep tabs on leads, manage accounts, and simplify customer interactions—among many other things—thanks to its intuitive interface and extensive feature set.

Power BI: Salesforce’s platform-as-a-service (PaaS) offering is Named It is the foundational platform for development that supports and enables programmers to create unique apps and enhance Salesforce features. Developers can build and launch unique business apps on without handling infrastructure management or system maintenance tasks. Apex, a proprietary programming language, Visualforce, a markup language for creating unique user interfaces, and numerous APIs for integration are some of the tools and resources it offers.

Make sure you have a look at the Salesforce Masters Certification Program!

  1. Is record count limited?

Yes, Salesforce customers do have a limit on the amount of records they can access. Marketing and sales professionals can make use of’s database of business-to-business (B2B) contacts and firm details.

The Salesforce version and licensing level determine the maximum amount of records that a Salesforce company can access.

  1. When comparing static and dynamic dashboards, what are the key differences?

Desktop Icon: In a static dashboard, all of the data and components are pre-set when the dashboard is created. Put simply, a static dashboard does not allow for any changes to the material unless the designer makes those changes themselves. The information shown on a static dashboard is usually a snapshot of data collected at a certain moment in time. Regardless of whether the underlying information have changed since the dashboard was last updated, users will always see the same data when they access the dashboard. When you want to deliver a consistent data perspective or share specific insights with others, but don’t want to risk the information altering dynamically, static dashboards are a good choice.

Transformative Dashboard: In contrast, dashboards that update data in real-time or near-real-time are known as dynamic dashboards. A dynamic dashboard is one in which the elements and data are not static but rather update mechanically at regular intervals or in response to human input. A more current picture of the metrics and key performance indicators (KPIs) is provided via dynamic dashboards, which enable users to see the most recent data available.

  1. To avoid governor constraints, what are some possible measures to take?

To keep from reaching the governor’s boundaries, here are some important tactics:

Make Your Apex Code More Efficient for Processing Bulk Data by “Bulkifying” It. Keep DML statements and SOQL queries out of loops. Processing records in collections, such sets and lists, is a better way to bulkify your code. Instead of creating loops to manually do calculations on huge data sets, use aggregate functions (such as COUNT, SUM, MAX, and MIN) in aggregate queries. Nested loops are a certain way to quickly reach your CPU limits, thus it’s best to keep them to a minimum in your code. Try to stick to using single loops if at all feasible. To restrict the amount of records returned by a SOQL query, you can use the LIMIT clause. To circumvent heap limits and manage heap size, this can be useful. Reduce the amount of records retrieved by using indexes and properly filtering your queries. Instead of searching every field, just select the ones you need.

  1. In a production setting, how can one make changes to apex classes?

Never make direct edits to Apex classes while they are live in production in Salesforce. It is safer to use a sandbox environment to make changes, test them extensively, and then deploy them to production using technologies like Change Sets or Metadata API. This lessens the possibility of making mistakes in the real world and helps keep things stable.

  1. Can you tell me what you know about Salesforce workflow?

Workflows in Salesforce are automated processes that let you set up a chain reaction of actions and rules that run when specific criteria are satisfied. Automating repeated operations and ensuring that particular actions are executed automatically in response to record changes are two of the main goals of workflow design. They also help to streamline business processes.

  1. Can you tell me what you know about Salesforce workflow?

A workflow is an automated procedure in Salesforce that lets you build a set of rules and actions that are triggered by specified conditions. Field changes, email notifications, tasks, and outbound messages are only some of the predefined activities that the work’flow triggers when certain conditions are satisfied.

  1. A permission set is what?

One of the most effective ways to give people more rights and permissions in Salesforce without modifying their profiles is with Permission Sets. Using these, managers have additional leeway to regulate which Salesforce features and data users have access to beyond what is specified in their profiles.

  1. Can you tell me what you know about Salesforce’s validation rules?

When users add or modify records in Salesforce, validation rules ensure that the data is consistent and of high quality by outlining requirements that must be satisfied. The data entered into Salesforce should conform to certain business criteria and validation logic, which these rules help to accomplish.

  1. When it comes to Salesforce, what does the term fiscal year or economical year mean?

A “fiscal year” or “financial year” in Salesforce is a predetermined twelve-month period that is utilized for accounting and financial reporting. An organization’s accounting processes or fiscal cycle determine the beginning date of the fiscal year, which does not necessarily coincide with the calendar year (January to December).

  1. Tell me about the many kinds of Salesforce SOQL statements.

Data retrieval from the Salesforce database is accomplished using SOQL, which stands for Salesforce Object Query Language. For the purpose of querying records and associated data, administrators and developers have access to a variety of SOQL statements.

To get records from a single object using certain criteria, you can use a basic SOQL query. There is no complexity in the syntax:

Relationship Queries: SOQL enables the use of relationship fields to query records from linked objects. You can query the fields of a custom object associated with an Account, for instance, in addition to the fields of the Account itself:

To do computations on records, you can use aggregate queries. The COUNT, SUM, AVG, MIN, and MAX aggregate functions are common. You can generate reports and summaries with these queries:

In SOQL, you can use nested queries, which are also called subqueries. To get data depending on the outcomes of another query, you can use subqueries. Take this case in point:

You can query related child records of an object by starting with the parent object and working your way down the hierarchy with parent-to-child queries. If you need to get all of the children’s records associated with a certain parent, this will help:

You can sort the results of a query using the ORDER BY function in SOQL, and you can restrict the amount of records returned using the restrict function:

  1. Tell me about Salesforce Lightning.

Salesforce Lightning is a state-of-the-art solution for designing and developing user interfaces. Its goal is to better serve users on PCs, tablets, and mobile devices by making the interface more intuitive, responsive, and entertaining. A vast improvement over the original Salesforce user interface, Salesforce Lightning brings a plethora of new features and functionalities to the table.

  1. Salesforce tracks sales in what ways?

There are several ways in which Salesforce keeps tabs on sales, such as:

Potential sales that could be made in the future are recorded as opportunities in Salesforce. Details on the client, the service or product being sold, the anticipated closing date, and the likelihood of sealing the deal are all part of these documents.

Calls, emails, meetings, and other interactions that lead up to opportunities are all considered activities. To keep salespeople organized and apprised of deal progress, Salesforce tracks several activities.

You can monitor your sales performance with the help of Salesforce’s many reports and dashboards. Data like lead conversion rates, open opportunities, and closed deals can be shown in these reports according to your specifications.

Sales pipelines are graphical depictions of the various stages of a sale. They illustrate the various phases that a deal goes through, beginning with a lead and ending with a closed contract. Salespeople may monitor the status of deals and see where their efforts are most needed with the help of pipelines.

Analyze sales data with the help of Salesforce Analytics, a set of tools provided by Salesforce. Sales representatives can enhance their performance with the help of these technologies by identifying trends, patterns, and insights.

  1. How does Salesforce define a static resource?

Files that can be referenced in Visualforce pages are known as static resources in Salesforce. A wide variety of file formats, including photos, style sheets, and JavaScript files, might be considered static resources. Users from any location can access static materials stored in Salesforce’s Content Delivery Network (CDN).

To make Visualforce pages run faster, static resources are a fantastic choice. There is a single download of the file when the Visualforce page referencing the static resource is initially loaded. Especially for pages with huge graphics or JavaScript files, this can improve the page’s performance.

  1. In Salesforce, there are three different kinds of object relations.

The simplest form of relationship is the lookup relationship. It makes two things into a parent-child pair. An Account object, for instance, can be linked to a Contact object through a lookup relationship. This allows for the possibility of having multiple connected Contact entries for each Account record.

One kind of interaction that is more involved than others is the master-detail relationship. As a result, two things form a close bond, similar to that of a parent and kid. An item of type Product can have a master-detail connection with an object of type Pricebook. This mandates that there be precisely one Pricebook record associated with every Product record.

The most intricate form of relationship is a many-to-many relationship. It enables you to establish a connection between two objects so that both can access several related records from each other. A many-to-many relationship can exist between two objects, such as a User and a Group. So, it’s possible for a User to belong to more than one Group, and for a Group to have more than one member.

  1. Define “Audit trail.”

An audit trail is a function that keeps track of and logs any modifications made to Salesforce records and configuration. It keeps track of past actions and updates, so both administrators and users can see how things have changed. In a Salesforce setting, the audit trail aids in maintaining data integrity, compliance, and responsibility.

  1. A wrapper class is what?

Wrapper classes are custom Apex classes in Salesforce that can encapsulate many data kinds or objects into one. In order to make your Apex code easier to work with and transfer around, it lets you mix multiple sorts of data or objects into a cohesive structure.

  1. Do you know of any advantages to utilizing Salesforce?
  • Enhanced productivity through the simplification of sales procedures.
  • Customer data centralized for improved relationship management.
  • Improved working relationships amongst employees.
  • The capacity to scale up or down depending on the needs of the company.
  • Making educated choices through data-driven decision-making.
  • Capabilities for integration to ensure data flows smoothly.
  • Access via mobile device for work while traveling.
  • Adaptation to meet unique company requirements.
  • Strong safeguards to keep data safe.
  • An encouraging user base and extensive resources.

25. Can you tell me what the junction item is and why it’s there?

    When two linked objects are in a many-to-many relationship, a custom object called a junction object can be used to bridge or connect them. It opens the door to more intricate data modeling and administration by letting you establish relationships between records from various objects.

    Salesforce frequently makes use of junction objects for handling complicated relationships, such as many-to-many, or when extra information pertaining to the link between two objects needs to be stored. They guarantee data quality and consistency within the Salesforce platform by offering a graceful and adaptable method to model these kinds of interactions.

    1. Could you tell me the various report options in Salesforce?

    Data can be presented in a table format in tabular reports.

    • Reports for Summary: Compile data and show totals, including subtotals and grand totals.
    • Reports in the form of matrices: summarize information using a grid.
    • Joined Reports: Merge information from various sources into a single document.

    Rows and columns displaying summarized data are available in the cross-summary report type.

    Data visualization is made easy with chart reports.

    • Reports on Dashboards: Combine many charts and reports into one convenient dashboard.

    Analyze data throughout time to detect trends and changes; this will be used in historical trend reports.

    An up-to-date, intuitive tool for making one-of-a-kind reports is Lightning Report Builder.

    1. What are the advantages of SaaS in Salesforce?

    For companies utilizing Salesforce as a CRM platform, SaaS offers numerous benefits, including cost savings, accessibility, scalability, data protection, continuous updates, integration, customization, collaboration, and advanced analytics.

    1. Data loss can occur due to what?

    There are a number of potential causes for data loss in Salesforce, such as:

    1.Without adequate backup and recovery procedures, data loss can occur due to human error, which includes accidental deletion, overwriting data, or inaccurate data updates.

    2.Technical difficulties or software errors in the system can lead to the loss of data. Data corruption, problems with data synchronization, or software errors leading to record loss or corruption all fall under this category.

    3.Data Migration: Importing or migrating data from other systems can lead to data loss or integrity issues if mistakes are made in data mapping, transformations, or validation.

    4.Data loss or inconsistencies can occur as a result of integration problems, which can occur when Salesforce is not properly integrated with other systems or applications. These errors can manifest as data mapping issues, unsuccessful data transfers, or data mismatches.

    5.Data loss or compromise may occur as a consequence of security breaches, which entail unauthorized access to data. To prevent data breaches caused by outside forces, strong security protocols must be in place.

    1. Are duplicate profiles possible for two users? It is possible to assign a user to more than one profile.

    According on their profiles, users are granted different degrees of access in a Salesforce organization.

    Yes, with respect to the first portion of the question. It is possible to give a single profile to several users. As an example, consider a company’s sales or service staff. Every member of the team will have a unique profile. The admin has the option to build a single profile called Sales Profile. This profile will have access to all the objects that the organization deems important, including Leads, Opportunities, Campaigns, Contacts, and more.

    Many users can have the same profile in this fashion. You can restrict access to specific records or objects for specific users, such as the team lead or manager, by assigning them specific permission sets.

    Regarding your second inquiry, the answer is that each user can only have one profile assigned to them.

    1. How do Salesforce Governor Limits Work?

    The number of records or data points that can be stored in the shared databases in Salesforce is controlled by the Governor Limits. Why? Reason being, multi-tenant architecture is the foundation of Salesforce. To put it more simply, Salesforce stores the data of numerous clients/customers in a single database. You can better understand this idea by referring to the illustration below.

    The Apex run-time engine rigorously enforces the notion of Governor Limits, which Salesforce introduced to prevent any one client from monopolizing the shared resources.

    The greatest difficulty that a Salesforce developer faces is with governor limits. Why? Because an unhandleable run-time exception is sent by the anticipated governor whenever the Apex code surpasses the limit. So, as a Salesforce developer, you need to exercise extreme caution when making your app. Sign up for the Salesforce Developer Certification course right now to find out more.

    Here are the various Salesforce governor limits:

    • Apex Limits Per Transaction

    the limits of the Apex Platform on

    Apex Limits That Are Static

    • Limits on Apex Size
    • Limits on Other Apex Functions

    Permissions for Sending Emails

    • Limits on Push Notifications

    page 31. How does one define a sandbox organization? In Salesforce, what are the various sandbox types?

    The term “sandbox” refers to a development and testing environment that is identical to the production environment. It’s helpful since it lets you work on Apex code without affecting the live environment.

    So, when exactly is it going to be useful?

    If you’re in the process of developing an application or Visualforce page for use with, you can utilize this tool to test it. Rather of putting it into production straight away, you can build and test it in the Sandbox organization.

    This manner, you may build the app without any problems and move the data and metadata (if relevant) to the live environment. Developers are able to freely test and play with applications end-to-end in a non-production environment when they do this.

    Various Sandbox Styles:

    • Creator
    • Developer for Mac
    • Replica in part

    The complete

    1. In a production setting, is it possible to make changes to an apex class or trigger? Is it possible to make changes to a Visualforce page while it’s live?

    Direct editing of apex classes and triggers is not possible in a production environment, unfortunately.

    The Developer edition, testing org, or sandbox org must be used as a starting point. A user with the Author Apex access needs to utilize the deployment tools to deploy the classes and triggers before it can be deployed to production.

    Nonetheless, both the sandbox and production environments are capable of creating and editing Visualforce pages.

    The only time a Sandbox development is required is when the page needs to perform something special (different values).

    1. In a typical field record, what are the many possible data types?

    You can use either an auto-number or a text field with a maximum length of 80 characters for a standard field record name.

    To produce auto numbers, just provide the format when you define the field. After that, the number will be automatically generated for every record added.

    1. In action, what do WhoId and WhatId mean?

    By “WhoID,” we mean individuals. The usual suspects: leads and contacts. Case in point: LeadID and ContactID

    “WhatID” is shorthand for things. Case in point: AccountID, OpportunityID

    1. Why bother to put sharing rules in writing?

    Would sharing rules be able to limit who can access what data?

    For each Salesforce organization, there is a set of sharing rules that can be used to grant specific users read/write or edit access. As an example, consider the following scenario: relative to your peers, only your supervisors or superiors require additional credentials to access your information in objects.

    Your organization’s default sharing settings—Public Read Only or Private—will be applied to all users by default.

    By creating sharing rules, we can grant people access to more records that they do not officially possess.

    One use case for sharing rules is giving members of public groups or roles access to shared resources. Therefore, the default settings for the entire organization are more stringent than the sharing restrictions. For those users, they provide more access.

    Regarding the second portion of the inquiry, the response is negative. Restricting data access through sharing rules is not an option. Greater access to records is the sole purpose of its usage.

    1. A bucket field is a report feature; what is it?

    Without resorting to complicated algorithms and custom fields, a bucket field enables you to combine related records together by segments and ranges. Data can be grouped, filtered, or organized in reports using bucketing. In order to categorize report information, you must establish numerous categories (buckets) when you construct a bucket field.

    One perk is that we no longer need to make special fields just to categorize or divide up our data.

    1. Dynamic dashboards, what are they? Is scheduling dynamic dashboards possible?

    Allow me to explain static dashboards first, so you can better grasp dynamic ones. Any user who has generated a report from his data will be able to see static dashboards, the most basic sort of dashboard. This is an illustration of what a sales or marketing manager’s Salesforce organization might show them. Put simply, a standard dashboard solely displays facts as seen through the eyes of one person. Dynamic dashboards are the next topic to cover.

    One purpose of dynamic dashboards is to show users data that is personalized to them. Remember the previous example? Let’s use it again. Sales managers can utilize dynamic dashboards to see reports tailored to individual team members.

    When you want to display data that is customized to a user, such their sales quota, number of closed cases, number of leads converted, etc., a dynamic dashboard is a great tool to employ.

    Use a regular, static dashboard to display company-wide or regional data to a group of users; for example, you can display the sales amount for a certain region or the case closure performance of a specific support team.

    No, we are unable to accommodate requests for dynamic dashboard scheduling (regarding the second part of your query). Reason being, the data is generated in real-time and displayed on the dashboard whenever we open it.

    1. Could you tell me the various report options in Salesforce? In Salesforce, is it possible to delete reports in bulk?

    Types of Reports in Salesforce

    1. Tabular reports are straightforward lists of items with their totals shown in an Excel-style table.
    2. Summaries are like tabular reports in many ways, but they also allow you to view subtotals, create charts, and organize rows.
    3. Reports in the form of a matrix are two-dimensional, allowing you to categorize records according to both rows and columns.
    4. Multiple blocks displaying data from many reports based on the same or different types of reports, forming joined reports

    Also, keep in mind that dashboards can only use Summary and Matrix reports as data sources. You can’t utilize tabular or joined reports to populate dashboards.

    In Salesforce, is it possible to delete reports in bulk? Certainly, Salesforce allows us to delete reports in bulk. You may find the option to delete reports in bulk under the Data Management section of the Setup menu.

    Data Modeling and Management-Related Salesforce Interview Questions (D)

    1. In Salesforce, what are the various object relations? Do you know how to make them?

    Incorporating Salesforce object associations into the questions list is missing a key component. You can connect many objects in Salesforce through relationships.

    Among Salesforce’s many object relationship kinds are:

    A parent-child relationship in which one object directs the actions of another is known as a master-detail relationship (1:n). One thing you should know is that the master field, being the controlling object, cannot be empty. This is because it is a 1:n relationship, meaning that there can be only one parent but many children. The fields in the dependent object that correspond to records or fields in the master object are likewise erased. One term for this is a cascading delete. You can establish master-detail relationships between two custom objects or between a custom object and a standard object, provided that the standard object is the master in the connection. Dependent fields will take on the owner, sharing, and security settings of their parent object.

    The second type of relationship is the lookup relationship, which allows you to connect two things without making them dependent on one other. You can compare it to a parent-child relationship, where there is only one parent but many children (a 1:n relationship), or a Master-Detail relationship. The main difference is that, even though it is a controlling field, removing a record will not erase the lookup field in the child object. There is no cascade delete because this will not impact the records in the child object. Similarly, child fields cannot take on their parent’s sharing or security policies.

    Thirdly, a junction relationship (many-to-many) can be formed when two master-detail relationships are required. By connecting three custom items, two master-detail connections can be established. This setup calls for two objects to serve as masters, with a third object acting as a dependent on the two. To put it another way, it will be subordinate to both of the parent objects.

    1. As soon as a master record is removed, what occurs to the detail record?

    When a parent record is destroyed, what happens to the child record?

    With a Master-Detail relationship, erasing the master record triggers the automatic deletion of the detail record.

    The deletion of the parent record will not result in the deletion of the child record in a Lookup relationship.

    1. Would it be possible to have a summary field that rolls up in the event of a Master-Detail relationship?

    Yes. If there is a relationship between masters and details, you can have a summary that is rolled up. On the other hand, a lookup relationship is an exception.

    It is possible to display a value in a master record that is dependent on the values of a collection of fields in a detail record using a roll-up summary field. There has to be a master-detail relationship between the detail record and the master record.

    You can do four different types of calculations with the roll-up summary field. A master record’s associated detail records can be counted. On the other hand, you may find the minimum, maximum, or sum of a field’s value in the detail records.

    1. “Data Skew” is a Salesforce phrase; please define it.

    “Data skew” is a problem that could arise when dealing with large clients that have more than 10,000 records. “Ownership data skew” describes the situation in which a single user has ownership of that many entries.

    Problems with performance due to “data skew” will arise if such users apply updates. This occurs when a small number of people or roles control the majority of an object’s records.

    1. An explanation of the slim table is provided. In what ways does Skinny Table need to be thought about?

    Slender tables are employed in Salesforce to gain access to commonly utilized fields while evading joins. This significantly enhances efficiency. Despite changes to the source tables, skinny tables will remain in sync because of how effective they are.

    Things to think about with thin tables:

    The maximum number of columns that skinny tables can have is 100.

    • Fields from other objects cannot be included in skinny tables.
    • Starting with the Summer 2015 version, skinny tables will be copied to your full sandbox organizations.
    1. Salesforce automatically indexes which fields?

    Automated indexing in Salesforce is limited to the following fields:

    • The fields for Main Keys (Id, Name, and Owner).
    • Foreign keys (relationship fields that are either master-detail or lookup-related).
    • Dates of audits, including SystemModStamp.
    • Custom fields designated as externail identifiers or distinct fields.
    1. When using Data Loader to upload, how can I deal with fields that contain commas?

    When working with a Data Loader.CSV file, it is necessary to surround any field text that contains a comma in quotation marks: ” “.

    E. Questions on Logic and Process Automation for Salesforce Interviews

    1. Can you tell me which workflow criteria do not allow for the creation of a “time dependent workflow action”?

    For “created, and every time it’s edited,” you can’t make a time-dependent workflow activity.

    1. In Salesforce, what kinds of configuration options are available? Using custom settings has what benefits?

    Salesforce allows users to create two distinct kinds of custom settings: list and hierarchy.

    List Custom Settings offer a collection of reusable, static data that can be accessible by everyone in your business, regardless of their profile or user ID.

    To further “personalize” settings for individual profiles or users, another sort of custom settings called hierarchical custom settings makes use of the system’s inherent hierarchical logic.

    Using custom settings has the benefit of letting developers define their own unique set of rules for access for different profiles and users.

    1. Can a lead or case have multiple active assignment rules?

    Every rule must be active individually.

    1. Tell me about Salesforce custom labels. Can you tell me how many characters a custom label can have?

    Apex classes and Visualforce pages both have the ability to access custom labels, which are text values. Any language that Salesforce supports can be used to translate these values.

    The main advantage of these is that they let programmers make apps that support several languages and display content in the user’s local tongue.

    Your company can have up to five thousand unique labels, each with a maximum length of one thousand characters.

    1. In Salesforce, how are profiles and roles different?

    A user’s profile will manage their access to certain records in a Salesforce organization, as stated in an earlier question. A profile is required for every user to access the Salesforce organization. Thus, the Profile is required of all users.

    However, not every user is required to have a role. Access to records owned by lower-level users can be facilitated by higher-level users through the Role/Role hierarchy. As an example, it’s not uncommon for sales managers to have access to documents that belong to sales representatives, but their colleagues do not.

    1. Where can I find some examples of formula fields on that are not deterministic?

    A brief overview of deterministic and non-deterministic formula fields will be provided before I provide some practical examples. Deterministic fields are formula fields whose values will never change. On the other hand, non-deterministic formula fields are those whose values will be dynamically altered or calculated on the fly. A formula that returns the current date and time is a classic example of that.

    The following are instances of fields that are not deterministic:

    • Retrieval fields
    • Formula fields with cross-entity references
    • Areas where the date function is dynamic, such as TODAY() or NOW()

    F. Questions for the Salesforce Testing Interview

    1. What is the purpose of creating test classes? What are the telltale signs that a given class is a mockup?

    Coding in test classes facilitates faster debugging, as any software developer worth their salt can tell you. Why? Reason being, whether you’re using Apex or another programming language, test classes aid in the creation of robust and error-free code. Salesforce mandates the use of Apex code for test classes since unit tests are powerful on their own.

    Why do they possess such immense power?

    Because test classes and test methods ensure that a certain piece of code is functioning correctly. If the code fails, the developers or testers will be able to pinpoint the exact test class that has the problematic issue.

    With the @isTest annotation on every test class, it’s easy to tell which ones are running tests. Actually, a class cannot be specified as a test class until it is annotated with @isTest. Likewise, a test method is any method in a class that has the keyword testMethod.

    1. How much testing must be done before the trigger may be deployed?

    At least 75% of your Apex code must be covered by unit tests in Salesforce before you can deploy your code to production. Every one of these tests needs to be a success.

    Mr. G. Salesforce Debug and Deployment Tool Interview Questions and Answers

    1. In Salesforce, what are the various deployment options?

    There are a few ways to deploy code in Salesforce:

    1.Swap Out Pairs

    2.Power IDE for Eclipse and

    3.Migration Tool for – Built using ANT and Java

    4.Salesforce Application

    H. Interview Questions on Salesforce Integration

    1. An external ID in Salesforce, what is it? Which field data types are compatible with external identifiers?

    To provide each record its own distinct identity, you can utilize an external ID, a custom field. The primary application of external IDs is during data and record imports. An external ID (unique identifier) must be marked in one of the numerous fields of imported entries.

    It should be noted that the use of custom fields as External IDs is strictly prohibited. Text, Number, E-Mail, and Auto-Number are the fields that can be designated as external IDs.

    1. In an Apex transaction, how many times can an external service be called?

    No more than 100 callouts to HTTP requests or API calls can be made by a single Apex transaction due to governor limits.

    1. In Salesforce, how can you make an Apex class available as a REST WebService?

    Apex classes and methods can be exposed through the REST architecture, allowing external applications to access your code and application. To make your Apex class accessible as a REST resource, you can add the @RestResource annotation when you define it. After that, a WebService callback method and global classes are at your disposal.

    There is no way around using system context when calling a custom Apex REST Web service method. Hence, the credentials of the current user are not utilized, and any user with access to these methods can exert their full authority, irrespective of permissions, field-level security, or sharing rules.

    Leave a Reply

    Your email address will not be published. Required fields are marked *