Black Friday Deal : Up to 40% OFF! + 2 free self-paced courses + Free Ebook - SCHEDULE CALL
Are you ready to conquer your next Salesforce Apex interview? This powerful programming language unlocks the full potential of the Salesforce platform, allowing you to build custom applications, integrate seamlessly with third-party tools, and craft sophisticated business logic.
But landing your dream Salesforce developer role requires more than just technical prowess. You need to ace the interview! That's where this guide comes in.
We've compiled a comprehensive list of the Top 104 Salesforce Apex Interview Questions and Answers. This essential resource equips you with the knowledge and confidence to tackle any interview scenario, from entry-level to advanced positions.
Whether you're a seasoned professional looking to refresh your memory or a newcomer eager to break into the Salesforce development scene, this guide is your roadmap to interview success.
Dive in and explore:
Don't let interview jitters hold you back. Prepare like a pro and secure your dream Salesforce developer role with our ultimate Apex interview Q&A guide!
Ans:- Apex is an object-oriented and strongly typed computer programming language that enables the developers to implement flow and transaction control statements on all the Salesforce servers in collation with calls to the APIs. It uses syntax that looks quite like that of Java and works like the database stored processes. Apex helps the developers to implement business logic with most of the system events, together with tab clicks, related record updates, as well as the Visualforce pages.
Learn more about Apex with Salesforce online training
Ans:-Apex Scheduler is the feature that is used to invoke the Apex classes to help them run at explicit times, first, execute the Schedulable assemblage for the class, then state the schedule by utilizing either the Schedule Apex page or the System.
Ans:-
Ans:-Abstract classes in Salesforce Apex are the classes that comprise one dynamic strategy at least. A conjectural technique is an approach that is marked though it contains no use whatsoever.
Ans:-The Apex class is the class which is planned to run at some predefined intermission of programming classes. A Scheduler Class must necessarily execute a schedulable crossing point and it should also contain the method ‘named execute ()’.
Ans:-Following aggregate functions are supported by Salesforce SOQL-
Sum ()
Min()
Max()
Count()
Avg()
Count_Distinct()
Ans:-The standard controller in Salesforce Apex programming is auto-generated by the Salesforce silo for all its objects. Whereas the Custom controllers are the control commands that are written by the developer and they do what the code was written by the developer tells them to do.
Ans:-ActionPoller is the clock in Apex that enables an AJAX refresh demand to be sent to the server as instructed by a period interim that the developer determines.
Ans:-In case you wish to retrieve or refer to required ID in a Visualforce page then, in that case, you can easily refer to it utilizing a standard controller.
Ans:- Page Reference in Apex environment is a reference which is made to an instantiation of a specific page. Among the several different characteristics that it possesses the most noteworthy ones are- Page References that comprise a URL and a plan of inquisition parameters of several names and qualities.
Get Salesforce scenario based interview questions for freshers pdf here!
Ans:- An app is a collection of tabs that work together to give functionality. The Force app drop-down menu in the top-right corner of every page allows users to move between apps. You can tailor current apps to your needs, or create new ones by combining standard and custom tabs. In order to develop an app in Sales Force, follow these steps: Setup ->Build ->Create ->App -> Click on new and create your application based on your needs.
Ans:- Custom objects are database tables in Salesforce that allow you to store data relevant to your organisation. Custom objects can be used to enhance Salesforce functionality or to create new application capabilities. To enable users to engage with the data after creating a custom object, you can add a custom tab, related lists, reports, and dashboards. You can also get information about customised objects using the Force API.
In order to build an object in sales force, follow these steps:
Setup->Build->Create->Object->Click on new object and create object based on your needs.
Ans:- Data - The records on which a business depends, such as Accounts, contacts, users, etc.
Metadata - data that defines other data or data about data is meta deta. It is related to the fields, code, configurations, page layouts, and logic that go into creating the salesforce environment's appearance.
Ans:- You can create a parent-child schema by relating records to one another using a lookup relationship. This usually occurs between various objects (like Accounts and Contacts), but it can also occur between just one item (like Parent Accounts). Relationship fields aid in reporting by allowing users to specify how records relate to one another.
Ans:- Profiles and Roles work together to decide which records users may see and do with. Profiles are always required since they govern which objects and fields users have access to. They also decide whether users have the ability to create, amend, or delete records.
Ans:- Although roles are strictly optional, they are recommended. Roles are primarily concerned with sharing records with users. When the organization-wide default sharing for an object is set to less than Public Read/Write, you can utilise Roles in Sharing Rules to specify which records (and whether they're Read-Only or Read/Write) users can view. Roles have a hierarchy, similar to an organisational chart, so that sharing can extend beyond the data that users require.
Ans:- Permission Sets are Profile add-ons. They all have the same parameters and are used to give users more permissions than the Profile allows. They have the advantage of allowing you to grant people somewhat different access without having to create distinct Profiles. In this approach, they cut administrative overhead. Profiles are the foundation set of permissions that many people share, whereas Permission Sets are the "extra" permissions that fewer individuals require.
Ans:- Email services can be used to process the body, headers, and attachments of received emails. You could create an email service, for instance, that creates contact records from message contact information.
Ans:- Lookup and Master detail are linked one to many times. We can construct a many-to-many relationship using the junction object. A unique object with two master details is referred to as a junction object.
Ans:- Public Groups are analogous to Roles, while Permission Sets are analogous to Profiles. An Administrator can construct ad hoc groups of users (named individually or by Roles) to whom documents can be shared. According to Directors, a popular use case is to share records with users at a similar level. Because Directors are likely dispersed throughout the organisation, they are unlikely to be under each other in the Role hierarchy.
Ans:- Text, selection list Picklist (multiple selection), Date, Date/Time, Currency, Checkbox, Number, Percentage, Phone, URL, Text Area, Geolocation, lookup relationship, master-detail relationship etc…..
Ans:- Queues, like Public Groups, are custom groupings of people (designated individually or via Roles), but they are used for record ownership rather than Sharing Rules. The most common application is for Cases where you want to assign an open one to a group of individuals so that whoever was available first may handle it. Queues are not available on all standard objects, but were added to Tasks in the Spring '20 release.
Ans:- PaaS is an acronym that stands for Platform as a Service: This type of service includes a development platform with all types of applications preconfigured. You'll subsequently be required to write and run all of your code in a remote server via some technique.
Ans:- Rollup Summary is used to determine the sum, minimum, and maximum of child records as well as to display the count of child records.
Ans:- The information or audit trail tracks every recent configuration modification made to the organisation by an administrator.It keeps data from the last six months.
Ans:- It outlines the fundamental amount of access that each user in the organisation has to data records. Restricting access to data is beneficial.They are Controlled by Parent, Private, Public Read/Write, Public Read/Write/Transfer, and Public Read Only.
Ans:- SaaS stands for Software as a Service: It provides the greatest support and is the most user-friendly of all delivery options. It's likely that you already utilise it in your workplace. This is the highest level of service, which includes everything from hardware to software to pre-built apps.
Ans:-
An action is launched by an automated procedure called a workflow based on evaluation and rule criteria. We have access to a workflow for the entire object. A trigger is a section of code that runs either before or after a record is added to or changed. One trigger can contain up to 20 DML activities.
Ans:- JavaScript remoting can be used by front-end developers to send an AJAX request from a Visualforce page straight to an Apex controller. By separating the page from the controller and enabling JavaScript remoting, you may carry out operations on the page without having to reload it whole.
If you are just starting out and are confused about the career path, take a look at how to start your career in Salesforce for all your queries.
Ans:- There are mainly two types of triggers in salesforce:
Before triggers: Prior to updating or verifying record values before being saved to the database, triggers are employed.
After triggers: They are used to access system-defined field values (such as a record's Id or LastModifiedDate field) and to impact modifications in other records.
Ans:- In Salesforce, sharing rules are used to automatically establish exceptions to the Organization-Wide Default settings for users who do not own the record.
They should be applied to objects whose org-wide defaults are set to Public Read-only or Private because sharing rules can only extend the access allowed by Organization-wide defaults and cannot restrict it.
Salesforce has two types of Sharing Rules that determine which records are shared:
32. Why is a wrapper class used in Salesforce?
Ans:- A class, data structure, or abstract data type whose instances are collections of other objects is known as a wrapper or container class.It is a custom object that a Salesforce developer has defined, and in it, the properties are listed.
33. What does Salesforce's transitory keyword mean?
Ans:- In Apex classes that can be serialised, such as controllers, controller extensions, or classes that support the Batchable or Schedulable interface, the transient keyword is used. View state size is decreased when variables are declared as transitory.
Ans:- A trigger is a piece of code that runs both prior to and following the insertion, update, or deletion of a record in the force.com database.
Ans:- Avoid editing Apex classes directly in production in Salesforce. Instead, create changes in a sandbox, properly test them, then use deployment technologies such as Change Sets or Metadata API to migrate them to production safely. This contributes to stability and lowers the possibility of introducing issues in the live environment.
Ans:- Salesforce Lightning Design System (SLDS) is the user interface design framework that Salesforce uses to design, style, and construct all components of Salesforce Lightning.
As developers, we may use the CSS styles and component markup templates given by SLDS to create bespoke components that have a consistent UI with the rest of the platform. SLDS also provides accessibility, language guidance, and symbol guidelines.
Ans:- Trigger.A list of the new versions of the sObject records and Trigger is returned by new is.Old is provides a list of old sObject record versions.
Ans:- We can, yes. It is the same as invoking a class method from a trigger normally. The method should always be asynchronous with @future, which is the only distinction.
Ans:- If your trigger uses the same DML statement and the same DML condition in the trigger firing condition on the same object (on which the trigger was written), recursion will happen.
Ans:- Every trigger is a bulk trigger by default, which allows for batch processing of numerous records at once. for each 200 record batch.
Ans:- We may turn the Trigger into an Asynchrinous Class and employ a Callout method by using the @Future annotation.
Ans:- To prevent an endless loop in an Apex class, use a static variable. Local to the context of a Web request are static variables.
Ans:- Although it is possible to write more than one trigger, it is not advised.Using one trigger on one object is best practise.
Ans:- WhoID uses Lead ID or contact ID in activities and is utilised for people's things.
When referencing objects in activities, WhatID uses either an Account ID or an Opportunity ID.
Ans:- A batch Apex task execution is seen as a discrete transaction every time it occurs. For instance, batches Apex task that executes without the Database's optional scope parameter and has 1,000 records.There are five transactions, each with 200 records, in an executeBatch. Each transaction results in a reset of the Apex governor limitations. The database alterations made in the first transaction are not undone if the first transaction succeeds but the second fails.
Ans:- We may process the records in batches and asynchronously by utilising the Batch apex classes.
47.Describe a database.batchable user interface?
Ans:- Using batch Apex jobs, the class that implements this interface can be run.
Ans:- Launch the global database.Execute: global void execute (Database.BatchableContext bc,List p>
), querylocator start (Database.BatchableContext bc
).{} Finish: database.BatchableContext.finish(bc)
global void
Ans:- It gathers the data or objects that will be used by the interface method.
Ans:- The governor limit for the total number of records returned by SOQL searches is overridden if we use a Database.QueryLocator. (Automatic 50,000) It supports 50 million records at most.
Ans:- Users can share records with others by clicking the Manual sharing button. We occasionally get into situations when individual users want to share their records with a different user (coworker). The best choice in this situation is manual sharing.
Ans:- The various applications of APEX can be used to build services like email, schedules, triggering, etc., as well as web services that integrate various systems and services. They can also be used to perform validations on various schema objects using specialised valida
Ans:- An example of one of the many elements of APEX syntax is a variable declaration for storing values from memory. The queries will be executed using SOQL, which will also be used to execute loop statements to perform iterations of operations, flow control statements to control the flow execution by starting or stopping the execution process, and DML statements to manipulate the data.
Ans:- To safeguard application features and code when sharing data or running code, APEX imposes several security constraints. It is also required to enforce various security measures and levels of security.
Ans:- A batch apex can be called from another batch apex, yes. You can call another batch either in the start method or the finish method.
Ans:- In an interview, these advanced APEX interview questions were asked. When used with the Salesforce Database, SOQL, also known as Salesforce Object Query Language, is created.
Ans:- The parent object and child object are linked by an external lookup connection. A custom, standard, or external object may be the child object. It makes use of to determine the proper mapping between the child object and the external parent object. Field values from external lookup relationships are compared to External Id values.
Ans:- It is a set of guidelines for sending XML-encoded data that are standard and Simple Object Access Protocol is the abbreviation.
Ans:- You must specify the Database while using a callout in batch Apex.the class definition's AllowsCallouts clause. For instance: SearchAndReplace implements Database as a global class.Database, batchable S objects.AllowsCallouts // By implementing Batchable interface methods, you can implement the business logic you wish. HTTP requests and methods with the webService keyword are both considered callouts.
Ans:- A single Apex sharing recalculation job is represented by the AsyncApex Job object.To search for Apex batch jobs in your company, use this object.
Ans:- Apex generates an extra AsyncApexJob record of type BatchApexWorker for internal use for every 10,000 AsyncApexJob records.
Ans:- Based on evaluation criteria, rule criteria, and path, an automated procedure launched an action. Create, Workflow, and Approval process setup
Ans:- Visual force pages employ static resources to upload things like photos, zip files, jar files, JavaScript, and CSS.
Ans:- No, we are unable to alter the class or trigger in production. Although we can modify visual force pages in production, these pages lack a custom controller.
Ans:-
The sales module in salesforce.com is referred to as Sales Cloud. Leads, Accounts, Contacts, Contracts, Opportunities, Products, Pricebooks, Quotes, and Campaigns are among its components.
Ans:- Salesforce.com's service module is referred to as the service cloud. Accounts, contacts, cases, and solutions are included.
Ans:- The workflow's actions are listed below.
Ans:- It establishes a connection between the standard object listed in a related list and the custom object. Finding the product's flaws is much easier using this.
Ans:- Output Text always displays field value as text regardless of datatypes like currency, lookup, etc., and Output Field is displayed automatically in accordance with field datatypes; for example, if the field is a currency, the output field will look like a currency symbol, and if it is a lookup type, the output field will be displayed as a link in sites.
Ans:- Regardless of datatypes, field values should always be displayed as text boxes. Automatically display based on field data types
Ans:- Pageblocktable is used to display records with the standard Salesforce look and feel, while Datatable is used to display records without it.
Ans:- Role hierarchies, Organisation Wide Defaults (OWD), Manual Sharing, Crietria-based Sharing Rules, and Apex Sharing are some of the sharing options.
Ans:- IsNull only supports numeric values.
IsBlank supports both numbers and text.
Ans:- A list of new version of Objects records is returned by trigger.new. This object is only available for insert and update, and it only stores changes made before triggers.
Ans:- Trigger. A map with new ID versions and triggers is called NewMap. An ancient ID version map is called OldMap.
Ans:- Using a test class, you can determine whether a write class's capability is functional. Salesforce does not permit production deployment if test coverage is below 75 percent.
Ans:- Batch Apex is used to run massive projects that would normally exceed standard processing constraints (imagine thousands or millions of records!). To remain under platform constraints, you can use Batch Apex to process records asynchronously in batches.
Ans:- Yes, we can use Apex to lock records for updates.
Ans:- A Visualforce Component is a segment of code that may be applied to other VF pages and reused.
Ans:- By setting the mandatory field on the visualforce page, designating the field as needed results in true
Ans:- The user can alter his role but not his profile.
Ans:- Yes, we can use content type to convert Visualforce into Excel format.
Ans:- We can determine which methods are running asynchronously by using the Future Annotation.
Ans:- Flow is a Salesforce automation tool that can be used to conduct numerous actions such as sending emails, posting buzz, sending custom notifications, and so on using clicks rather than code.
Ans:- Within the application or namespace, the public class is accessible, while global class is accessible from any namespace or application. Web services that can be accessed from within javascript and must be defined as global are required. It is comparable to Java's public modifier.
Ans:-
Ans:- To develop complicated business processes that are not supported by workflows, to do complex validation across a number of objects, to create email services, and to create custom transactional logic to attach custom logic to another object, such as saving records, Apex is utilised.
Ans:- Identifiers, keywords, operators, constants, Strings, SOQL searches, variable declarations, control statements, arrays, and DML operations are just a few of the various components found in Apex programmes.
Ans:- The user interface element known as a tab is used by the user to display custom object data. Three different types of tabs exist.
Ans:- Yes, users can upload their own custom logos into documents before selecting them as the organization's logo.
Ans:- variety of page layout elements, including fields, buttons, custom links, and related lists, are customizable.
Ans:- The parent controls record level access, the child is required for parent reference, and cascade deletion (deleting the parent also deletes the kid) are both possible.
Ans:- 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 utilise database. insert to partially execute a successful bulk insert operation.
Ans:- Validation Rules give you the ability to enforce particular business logic to support the data integrity of your organisation. On an object, it is possible to set requirements that cannot be met. For instance, if an Account doesn't have a Billing Address, you don't want a user to label an Opportunity as Closed Won. When a user tries to change the opportunity record, you can set a validation rule to prevent it and display an error message outlining what they need to do instead.
Ans:- Sometimes you want to aggregate kid data on a parent record but you can't utilise Master-Detail because it doesn't fit your use case's security requirements. In some circumstances, you might utilise Flow Builder or write code to mimic the functionality of Roll-up Summary fields. To make configuration simple, you'll most likely want an app from the AppExchange. An app like this is actually one of the first things you ought to aim to put in your organization—of course, first in a sandbox.
Ans:-
In a Master-Detail relationship, the master side has a Roll-up Summary field. It gives administrators the ability to instantly combine data from related detail records (count them; add a number to them, etc.). The primary factor that would lead you to consider a Master-Detail connection is the ability to have Roll-up Summary fields.
Ans:- Salesforce offers four different types of email templates.
Ans:- The read-only field that shows the total, the lowest, the maximum value of a field in a related list, or the number of entries included in the linked list as a whole. As a result, we may conclude that only Master objects can construct Roll up summary fields.
Ans:- Depending on the users' profiles, different picklist values and page layouts are displayed to them.
Ans:- Visualforce components are small reusable functional components like as widgets, user interface elements, panels, and so on. There are two sorts of VisualForce components: standard and custom, which are used to define user interface behaviour.
Ans:- By using Profiles, Go to the specific profile, where Record Type Settings will allow you to set the Record Type as the default.
Ans:- If the Account is deleted, any associated Contacts and Opportunities will likewise be removed from Salesforce.
Get to know more about Salesforce online training
Ans:- In salesforce, there are four different kinds of relationships.
Ans:- A report is depicted visually on a dashboard. We can add up to 20 reports in a single dashboard.
Ans:- The entire foundation of S-Controls is Javascript. These S-Controls were deemed obsolete in 2007 due to their inadequate support for Apex Language. S-Controls are now obsolete in favour of Visualforce.
Ans:- Apex is a strongly typed programming language. It makes direct references to architectural objects like sObject, and any faulty references that fail if they are destroyed or are of the incorrect data type fail fast.
Ans:- The audit trail records all recent setup modifications made to the organisation by an administrator. This has a 6-month data storage capacity.
Ans:- Asynchronous operation is a phrase used in technology to describe a procedure that runs separately from other operations.
Ans:- A many-to-many relationship can only be created using a junction object, which is a custom object containing two master-detail relation
Ans:- CRED (Create, Read, Edit, and Delete) object privileges can be managed with the use of profiles. They also include user-accessible system permissions, such as the ability to export data. Access at the object and field levels is through a profile. It is required of all Users.
On the other hand, roles support record sharing inside an organisation. Users get access to records that are controlled by persons below on the hierarchy thanks to the way that they operate. All Users are not required to use it.
Learn More about: What is CRM? Salesforce CRM Tutorial Guide For Beginner
Ans:- Millions of records can be processed using the batch class within the bounds of normal processing. To stay inside platform constraints, we can process records asynchronously with Batch Apex. If you have a lot of records to process, as you do when data cleansing or archiving, Batch Apex is probably your best choice. It is simpler to guarantee that your code stays inside the governor execution limitations with Batch Apex since each transaction starts with a fresh set of governor restrictions.
Ans:- When you attempt to persist in the same transaction while switching between a Setup Object and a non-Setup Object, a Mixed DML operation error will result.
Ans:- There is a checkbox for Grant Access Using Hierarchies (for both standard and custom items) in the Sharing settings and OWD settings. If this tick box is selected, additional users in higher roles in the Salesforce CRM Role Hierarchy will automatically have access to the user's data. Only the record owner and users who have been given access by OWD will be able to access the data if this checkbox is not selected.
Ans:- If a user just has read access to a particular record but wishes to change the owner name, he can do so by turning on transfer record functionality at the profile level.
Ans:- The different categories of bindings are as follows:
Ans:- Yes, a getter method is used to return values for controllers. There should be a getter method for every value that the controller computes and displays on the page.
On the other hand, we transmit the user-defined values from the page HTML to the controller using the setter method. We automatically call the setter method in the controller.
Ans:- Jumpstart Wizard
Standard Setup Wizard
Ans:- No, it is not possible to schedule the Salesforce dynamic dashboard.
Ans:- The undelete option will restore the record within an object's data.
Ans:- Skinny tables are useful for getting rid of joins and accessing frequently used fields. They enhance the performance of several read-only activities, such as reports, list views, and others. They are particularly effective because they remain current with the source tables in spite of source table changes. Without contacting Salesforce customer support, thin tables cannot be created, accessed, or modified. The following are the primary considerations while selecting thin tables: • It can only have a maximum of 100 columns. • Unable to retain fields from different objects.
Ans:- Salesforce testing is the term for testing of Salesforce-specific applications. It is the process of analysing a Salesforce configuration and customization to detect vulnerabilities every time an update, configuration, or customization is made. Additionally, end-to-end testing ensures that Salesforce interfaces function as intended
Ans:- Manual testing confirms that Salesforce apps are bug-free to identify and address any issues by mimicking real end-user behaviour.
Ans:- The object is generally used as a database table for keeping track of specific organisation’s details and information.
Ans:- Standard Objects and Custom Objects are the two different sorts of objects.
Standard Object: Salesforce's standard object is made up of accounts, campaigns, contacts, leads, opportunities, products, cases, contracts, and dashboards.
Custom Object: Users can develop Custom Objects to contain data that is exclusive to a business or industry. Page layouts, custom fields, and user interface tabs are examples of custom objects.
Ans:- The Salesforce's default fields are
Ans:- They are unique fields that keep tabs on details for a particular user record. It has fields for CreatedDate, CreatedByID, LastModifiedbyID, and LastModifiedDate.
Ans:- The Developer Console is an integrated development environment that includes a set of tools for designing, debugging, and testing Salesforce apps.
Ans:- These are one of the most common Salesforce interview questions since they force you to build scalable and professional code. The amount of records that can be stored in the shared database is constrained by this restriction. In salesforce, various limitations include:
Ans:- Salesforce devotes specific attention to security and data safety, hence visualforce websites are purposefully given a distinct domain. Thus, it prevents cross-site scripting by using a different domain.
Ans:- A feature called a tab is helpful for displaying integrated custom object data.
Ans:- Records can be stored in a variety of forms, including as photographs, files, critical documents, notes, etc. Among the often employed methods are:
Ans:- We can examine items like:
Ans:- SOQL aids in locating the records of the salesforce organisation. There are two sorts of SOQL queries: static and dynamic.
Here are some key distinctions between the two:
Static SOQL
Dynamic SOQL
15. What exactly are Salesforce.com and Force.com?
Ans:- While Force.com is a platform to help developers and enterprises create customised enterprise apps, Salesforce.com is a SaaS CRM programme. The primary distinction between the two is that Force.com is a PaaS (Platform-as-a-Service) solution, whereas Salesforce is a SaaS product. Salesforce enables users to store application data, and Force.com facilitates the creation and management of apps that are integrated with Salesforce data. Force.com creates specialised apps using HTML, CSS, and JavaScript.
Ans:- A custom category that is specified in reporting is the bucket. It enables you to combine related entries by ranges and segments without the use of intricate formulas or special fields.
Ans:- By selecting your user name or profile and then selecting "My Settings,"
Ans:- By selecting your user logo or profile, then selecting "My Settings," you can Authenticate your account.
Ans:- Salesforce.com's Community Cloud is a social network that connects and enables communication among employees, partners, and customers in an organisation.
The name "Community Cloud" has been changed to "Experience Cloud" to better reflect the vast range of interconnected digital experiences that may be produced, from portals, websites, and support centres to forums and even mobile apps.
Ans:- A CRM platform for customer service and support is Salesforce Service Cloud. Service Cloud is intended for support agents to automate case routing and accelerate case resolution, whereas Sales Cloud is intended for sales activities.
Ans:- Through APIs and industry-standard protocols, connected apps provide a platform for integrating third-party software with Salesforce. Third-party app authentication, authorisation, and SSO are all handled using industry-standard protocols like as SAML, OAuth, and OpenID Connect. Salesforce administrators can regulate app access and ensure security standards are followed with connected apps.
Ans:- Each Apex class must have 75% code coverage, with an organization-wide average of 75% code coverage. Classes and triggers are included.
23. What does sObject type mean?
Ans:- A sObject is any object that can be kept in a database on the Force.com platform. The use of a generic sObject abstract type is supported by Apex.
24. What are bucket fields, and how does Salesforce use them?
Ans:- Records can be grouped based on the values of Salesforce bucket fields. However, these fields can only be found in the report area and are never produced on the Salesforce platform to represent any object.
Ans:- A Salesforce sandbox is a simulation of the production environment that may be used for research, development, and testing. The size and contents of the sandbox can vary depending on the sandbox type and the production group's edition. Sandboxes are classified into four types:
Ans:- Apex objects are created using Apex classes as templates. Additional classes, variables, user-defined methods, exception kinds, and static initialization code are all included in these classes.A visibility enum is what?
A cached value's "visibility enumeration" specifies whether it is visible across all namespaces or just within its own namespace.
Ans:- From company information, we can determine when the salesforce organisation was founded, as well as the instance and org id, as well as the quantity of available licences and permission licences, among other things.
To allow individual users to do several tasks, permission sets are utilised to expand the access regulated at the profile level.
Ans:- A particular permission or setting within a group can be disabled, turned off, or removed by adding a muting permission without affecting the other permission sets within the group.
Ans:- Chatter is used internally by SalesForce users to communicate and interact.
The key benefit is a reduction in email correspondence, information sharing across many tools and apps, and storage of all data in salesforce.
Ans:- It's a group we set up in salesforce with different users or clients as members to share messages and work together on a particular topic, project, or account.
What distinguishes a post from a comment?
An individual user posts when they simply communicate in the chat box without tagging anyone else.
Ans:- There are 4 types of cahat groups, named here
Ans:- To rapidly track and receive notifications of a specific record for any object in salesforce, use stream chatter.
Ans: Salesforce's formula fields, which are read-only fields, used to automatically update their values based on the formula/calculation logic we implemented.
Ans:- After saving this custom object, launch the New Custom Tab Wizard.
Ans:- When the relationship is master-detail, cascade deletion takes place. If a parent is erased, all of the child's records are likewise deleted.An "Self-Relationship" is what?
A lookup relationship to the same object is referred to as a self-Relationship.
Let's consider the word "Merchandise" as an object. Here, we can establish a connection between two objects that are same in nature, or merchandise. It is referred to as "Self-Relationship"
Ans:- In salesforce, page layouts are used to create and update data for various objects by designing a page with fields, buttons, sections, and other relevant items.
Ans:- When we open any record, the highlight panel displays a compact layout. In the small layout, up to 10 fields can be included.
Ans:- You can add lookup filters to any lookup field to filter any lookup relationship object records based on the criteria you specify.
Ans:- Before a user can save a record, validation rules make sure the data they enter complies with the requirements you specify. A validation rule may contain a formula or expression that evaluates the data in one or more fields and returns the value "True" or "False."
Ans:- Salesforce uses field history tracking to keep track of any field modifications made by a user to any record. We must tick the option for field history tracking in the object and choose the fields we want to track in order to activate this. Data from the field history is kept for up to 18 months.
Field history tracking is available for Standard objects and Custom objects in Salesforce.
Ans:- When we click on the hierarchy button on an object record in Salesforce, hierarchy columns are used to specify which fields should be displayed as columns. In hierarchy columns, a maximum of 10 fields can be added.
Ans:- Any object may have restrictions by using the Object restrictions side panel in the Object Manager. Additionally, this will display the Usage, Limits, and % Used values of various information.
Ans:- Salesforce uses field dependencies to regulate the visibility of picklist values based on another object on one object. The item that affects how other objects appear is referred to as the controlling object, and the object that is controlled is referred to as the dependent object.
Ans:- To identify or decide the field values on new records by matching existing data for the same field values, matching rules are defined based on criteria.
Ans:- By applying matching criteria and checking existing data field values, duplicate rules are utilised to find duplicate field values on new records. By employing duplicate rules, we can either display a warning message or allow the user to continue creating duplicate data or we can prevent the user from doing so.
Ans:- In Salesforce, lead or case owners (users or queues) are automatically assigned using assignment rules. Owner assignment is automated utilising assignment criteria based on conditions on the Case or Lead.
What number of assignment rules can be in effect at once?
On the Case and Lead assignment rules, we can only activate one assignment rule at a time.
Ans:- Groups of users who can own records are called queues. In Salesforce, every record needs to have an owner. To share the records access route, we are able to add Groups, Users, Roles, and Roles & subordinates.
49. What does DML stand for? What are the many processes/types inside it?
Ans:- In computer technology, Data Manipulation Language (DML) allows us to do any operation on the data. SOQL and SAQL are used as DML languages in SalesForce.
The primary tasks that we perform with DML operations are
Ans:- Performing any DML operation (including insert, update, upsert, delete, and export) on data is called Data migration.
51. Tell us about the types of reports in salesforce?
Ans:- In Salesforce, there are 4 different report kinds.
52. What exactly is Apex Call?
Ans:- An Apex call is the process of running an Apex class. The Apex class can only be executed when one of the following methods is called:
Ans:- The report type from which you don't want to see fields or add fields should be checked
Navigate to set up search Report Types. à Verify and open the proper report name. To edit the layout, click the button. Fields can be moved around and saved.
Ans:- We have certain debugging tools in Apex. One of these is the system.debug() method, which prints the variable's value and output in the debug log.
Ans:- This utility is used to deploy scripts. After downloading the Force.com migration tool, you can undertake a file-based deployment. You can do a script deployment after downloading the Force.com migration tool.
ID: This type is specific to Salesforce and is used to represent the sObject's 18-bit identifier.
Ans:- Using the subscribe option, you can subscribe the dashboard to the day and time of your choosing, resulting in an email being sent to your outlook account including the report's chart or data. You can subscribe at Report/Dashboard.
Ans:- When we click on a tab in Salesforce, list views are used to display the data as a list of rows. One regular list view, "Recently Viewed Records," will always be available. Additionally, whatever we develop in Salesforce as a new feature is referred to as a custom list view.
Ans:- Salesforce's built-in REST API can be used by external systems for easy connections. This could be used to create, update, or query records. For more specialised or custom inbound integrations.
Ans:- Lightning Web Components is built with current web standards in mind, leveraging Web Components to create unique HTML elements that are lightweight and performant. Aura components are the legacy Lightning Component framework, however they continue to be developed in JavaScript and HTML.
Ans:- You can monitor your work and keep negotiations going forward with the use of Kanban views, which display records in a graphical manner. With a few exceptions, like tasks, most things can be seen in a Kanban format. Establish a Kanban view. Set up a Kanban view to display a list view of records with a graphical representation.
Ans:- To split the accounts based on geography, address, or any other criterion, and to assign the accounts to salespeople, territories in salesforce provide access to Account, Opportunities and cases.
Ans:- The same rule will apply to all of the child territories for a parent territory if the box labelled "Applied to child territories" is checked. And this inheritance assignment rule will be applied to all child territories.
Ans:- In Rename Tabs and Objects in Setup
Ans:- Search using Quick Find, translate, enter the translation options, and add the language to the list of available translations.
Ans:- With global picklist values or picklist value sets, you can use the same picklist values across many Salesforce objects while also limiting the picklists to the values you specify. By definition, a global picklist is a limited picklist.
A picklist may include up to 500 global value sets.
Ans:- Documents are still accessible in the traditional salesforce version and are not yet available in lightning. To open documents, return to the traditional version, click on All Tabs, then select the Documents tab.
Ans:- Libraries are available in Files in Salesforce Lightning; to open them, select App Launcher -> Files -> Libraries.
Ans:- Select & Add Objects under Add Utility Items after selecting Edit on App in App Manager.
Ans:- Considering Platform
Regarding Behaviour
Ans:- Utilising email templates will boost productivity and guarantee consistency in messages. You can rapidly send emails that contain field data from Salesforce records like contacts, leads, or opportunities by using email templates with merge fields. Email templates can be used to send emails to a single recipient, a list of recipients, or both.
Ans:- In the Salesforce App Builder, there are three different sorts of Lightning pages.
Ans:- App page: When you open an app in Lightning, the App Page tab serves as the default landing page.
Home page: Custom Home Page is what you use when you wish to replace the Lightning component's default Home tab.
Record Page: To customise the record page of an object to meet the demands of your users.Both the Lightning Experience and the Salesforce mobile app enable custom record pages.
Ans:- Automate a business process rather than relying on your users to complete each step! You can trust that the process is always carried out correctly, and your users can spend their time on other duties thanks to this. Salesforce provides capabilities to automate a variety of business activities, including approval automation, behind-the-scenes automation, and guided visual experiences.
Ans:- Email alerts are emails that are created by a machine and sent to certain recipients. The typical email body text and recipient list make up these steps. Email alerts can be connected to workflows, processes, flows, approval procedures, or entitlement processes.
Any user, role, group, related user (User lookup Field), record creator, record owner, and email fields can be added as recipients.
Ans:- The goal of any business rule is to automate the process rather than relying on the user to change it manually. The following actions are possible using work flow rules.
Ans:- By selecting the "All-Time" option on the page, we may bypass the Date filter in the Range column.
Ans:- Because of their ease of development and superior performance, Lightning Web Components should be used for all new innovations. We should avoid utilising Aura components unless we need to employ a feature that isn't yet supported by LWCs; in that case, we should wrap a LWC inside an Aura component.
Ans:- They are unique fields that keep tabs on details for a particular user record. It has fields for CreatedDate, CreatedByID, LastModifiedbyID, and LastModifiedDate.
Ans:- Users are distinguished based on the unique profiles they have made. Profiles are the basis for access levels.
Ans:- A Salesforce automated process called the approval process streamlines the approval of Salesforce records in your organisation.
In Salesforce, there are a number of processes that must be completed before a record may be authorised or refused by a user, queue, or public groups.
83. What workflow rule for time-bound actions?
Ans:- The four actions that can be set up in workflow rules can be immediate actions or time-bound work flow actions. Once the work flow is activated, we specify a period after which the tasks must be completed in TimeBound work flow actions.
Ans:- One of the characteristics we may use to construct distinct approver hierarchies or processes for a record in the approval process is the approval step. Based on criterion matches, it will start acting and sending messages to the approvers we choose.
Ans:- Because of its multi-tenant architecture, Salesforce allows several clients or users to share the same set of resources.
Ans:- Deploying involves moving elements/metadata from one salesforce org/environment to another.
Ans:- One method or procedure used in Salesforce for deployments is called a "changeset." Salesforce's changesets are a speciality, but version control is not supported. In the market, there are numerous tools that support version control and devops.
Ans:- Typically, we are limited to using one controller. However, using the many controller extension in the Visualforce page is an option.
Ans:- The three Salesforce.com portal types are as follows.
Ans:- In businesses and other organisations, the fiscal year or financial year is the time frame used to compile annual (yearly) financial statements.
Ans:- The open source UI framework Aura is used to create dynamic web applications for desktop and mobile devices.
Ans:- Utilising patterns and best practises, the Lightning design system aids in the creation of unique applications. Everyone can use the lighting design system because it is an open source project.
Ans:- The areas where we can use Apex are listed below.
Ans:- In an environment where you are conducting protest situated type of programming, a virtual class is a term referred to a settled kind of inward class whose capacity along with the part factors can be easily abrogated and also reclassified by the other subclasses of any other external class. Virtual classes are something that closely resembles the virtual capacities of the program.
Ans:-Overloading in Apex programming alludes to the capability to make use of alone identifier to distinguish various techniques for a class that contrasts in their in sequence virtues and gives way to the function parameters. Overload techniques are generally, for the most part, used especially when they convincingly carry out a comparable enterprise yet to some extent only one of its kind of arrangement of function parameters.
It is an idea which is used to steer totally away from the overindulgence of programming code where a comparable line of attack can be easily utilized in a number of circumstances when coupled with a few alternate arrangements of function parameters.
The real strategy that you had originally developed gets called in during the runtime to settle the assemble time, along these very lines balancing a very strategic distance from all the runtime mistakes that can occur. Overloading is the method that gives code the lucidity it requires, takes out its multilateral quality, and upgrades the runtime implementation.
Ans:-To begin with, it is first important for you to know that the Salesforce governor puts strict limits on its data. In case you want to get hold of the huge amount of records or fire DML on an n number of rows on class objects, it is very multifarious in Salesforce and it definitely does not let you manoeuvre on other than the certain specific number of data models or records that perfectly satisfies the Governor limits which are set.
Nevertheless, for medium to large businesses, it is very important to administer a large number of records every day. Adding/editing/deleting them whenever it is required. To handle this scenario Salesforce had to come up with this powerful commanding concept called the Batch Apex. Batch Apex is the feature that allows you to manage paperwork or files effectively and maneuver them by means of an unambiguous syntax.
Ans:-Apex Code is a wonderful platform that chains the aptitude of interpretation of the Apex procedures as an essential Web service. Salesforce Apex also supports the capability to call upon the peripheral internet services and this is what is referred to as 'Callouts.' The former one is drawn in while creating a request for the web service that a customer can bring into play, while the second one is invoking an outside web service.
Ans:- Here are a few considerations required for a Static keyword in Apex.
The Salesforce Self-learning module will help you formulate more concepts like this at your own pace.
Ans:- Truly, we can call apex methods utilizing javascript. We can accomplish this utilizing ActionFunction. An ActionFunction enables you to attach an apex method to a javascript function name and conjure synchronously. ActionFunction must be stated as a child of the apex: form component.
Ans:- A public class is accessible to the inside application or namespace. This isn't precisely similar to a public modifier in Java whereas Global class is visible everywhere, in any application or namespace. Web Service must be proclaimed as Global and which can be accessed inside Javascript as well. It resembles a public modifier in Java.
Ans:- CommandLink is a connection that implements an activity which is characterized by the program controller, and thereafter invigorates the present page or explores to the distinctive page in light of the Page Reference variable that is returned by the action.
Ans:- OutputLink is a connection to URL. This part is rendered in HTML as an anchor tag with an href property. The body of the OutputLink is a text or picture that displays the connection.
For complete Salesforce Trigger Interview Questions on Apex, get here!
trigger.new
and trigger.newmap
?Ans:- Trigger. new can be used as a part and parcel of when the type of activities. Whereas the Trigger.newmap can only be used as a part and parcel of an after embed and after and before a refresh.
Certainly, here are some more tips to help you prepare specifically for a Salesforce interview:
Review Your Resume: Be ready to discuss your experience and projects listed on your resume. Be prepared to elaborate on your contributions and the impact you made.
STAR Technique: When answering behavioral questions (Situation, Task, Action, Result), use the STAR technique to structure your responses clearly and concisely.
Use Real-world Examples: Whenever possible, use real examples from your past experiences to illustrate your skills and problem-solving abilities.
Brush Up on Soft Skills: Highlight your communication, teamwork, leadership, and problem-solving skills. Salesforce roles often involve collaboration and client interaction.
Whiteboarding Exercises: For technical roles, be prepared for whiteboarding exercises where you may need to draw out solutions to technical problems.
Data Modeling: Understand how to design effective data models that meet business requirements efficiently.
Debugging and Troubleshooting: Be prepared to discuss how you approach debugging and troubleshooting issues within the Salesforce platform.
Salesforce Limits and Best Practices: Familiarize yourself with Salesforce limits and best practices to ensure efficient and optimized solutions.
Business Process Automation: Be prepared to discuss how you've automated business processes using declarative tools like Process Builder, Flow, and Workflow Rules.
Nail your developer role with our Top 104 Apex Q&A Guide! Master frequently asked interview questions (for both freshers and veterans) and showcase your Apex & Salesforce knowledge. This guide tackles real-world scenarios and best practices. Bonus: Download a PDF with even more interview questions! Get ready to impress! (Happy coding!)
1. What is a Workflow
Ans:- The automated procedure is used to validate the rule criteria and the assessment criteria.
2. Are Roll-up summary fields only available in Master-detail relationships?
Ans:- It is only possible in a master-detail relationship.
3. Is it feasible to remove mass reports from Salesforce? If so, how do you go about it?
Ans:- Yes, it is feasible to erase the salesforce mass reports. To carry out the task of deleting the bulk report, Navigate to the Setup menu and select the Data Management option.
4. Can S-control be used to support merge fields in Visual Force?
Ans:- They can, indeed, support it.
5. What are the advantages of using custom settings in Salesforce?
Ans:- Developers must create custom-setting rules based on their profiles.
Interview Questions Based On Login Issues & Passwords
Top JWS and JWT Interview Questions and Answers
Interview Questions on Salesforce Data & File Storage Allocation
Cyber Security
QA
Salesforce
Business Analyst
MS SQL Server
Data Science
DevOps
Hadoop
Python
Artificial Intelligence
Machine Learning
Tableau
Download Syllabus
Get Complete Course Syllabus
Enroll For Demo Class
It will take less than a minute
Tutorials
Interviews
You must be logged in to post a comment