Professional Documents
Culture Documents
Aura and LWC are both frameworks for building applications on the Salesforce
platform. Aura is Salesforce's older framework, while LWC is a more modern,
lightweight alternative. Some key differences between the two include that LWC
uses modern web standards and is more performant than Aura, and LWC
components are built using JavaScript, while Aura components are built using
Aura's own proprietary programming language. Overall, LWC is generally
considered to be a superior option for building applications on the Salesforce
platform, but Aura is still widely used and supported.
A trigger framework is a set of rules and guidelines that dictate when and how a
specific action or response should be triggered in a given situation. This
framework can be used in various scenarios, such as software development,
business operations, or event planning. It defines the conditions that must be
met for the trigger to be activated and the corresponding actions that should be
taken. The purpose of a trigger framework is to provide a structured and
consistent approach to decision making and response to events.
1. Before triggers: Before triggers are executed before the specified event occurs,
such as before a record is inserted or updated. These triggers can be used to
validate data or to set default values for fields on a new record.
2. After triggers: After triggers are executed after the specified event occurs, such
as after a record is inserted or updated. These triggers can be used to perform
additional actions after the event has occurred, such as sending an email or
updating a field on a related record.
1. User authentication and access control: Ensuring that only authorized users have
access to specific Salesforce data and features based on their assigned roles and
permissions.
2. Data encryption: Protecting sensitive data stored in Salesforce using encryption
algorithms to prevent unauthorized access or tampering.
3. Network security: Implementing measures to secure the Salesforce network and
prevent cyber-attacks, such as firewalls and intrusion detection systems.
4. Application security: Ensuring that Salesforce applications are secure and free
from vulnerabilities that could be exploited by hackers.
5. Data backup and recovery: Implementing regular backups of Salesforce data and
having a plan in place to recover data in the event of a disaster or data loss.
6. Threat detection and response: Monitoring for potential security threats and
implementing measures to quickly identify and respond to potential security
incidents.
7. Compliance with industry regulations: Ensuring that Salesforce follows industry-
specific regulations and standards, such as HIPAA for healthcare organizations
and GDPR for European businesses.
For example, if we have a "Contact" object and an "Account" object, we can create a
master-detail relationship between them, with the Account object being the master and
the Contact object being the detail. In this relationship, each contact must be associated
with an account, and any changes made to the account (such as a change in the account
name or address) will automatically be reflected in the associated contacts.
The master-detail relationship allows for better organization and data management in
Salesforce, as it ensures that related records are linked and updated consistently. It also
allows for certain permissions and security settings to be set for the detail object, based
on the master object.
6) What is the Difference between WhatId and WhoId?
Batch Apex is a Salesforce feature that allows developers to define and run large batches
of data processing, with up to 50 million records per batch. This is useful for tasks such
as data migration, data cleansing, and mass updates or deletions.
Batch Apex is executed asynchronously, meaning that it runs in the background and
does not interfere with the user's interaction with the system. It is divided into smaller
batches of records, called "chunks", and each chunk is processed separately.
Batch Apex has two main methods: start() and execute(). The start() method is called to
initiate the batch process and specify the data that will be processed. The execute()
method is called for each batch of records and contains the logic for processing the data.
For example, a developer may create a batch Apex class to update all contact records
with a specific email domain. The start() method would specify the criteria for which
records should be updated (e.g., all contacts with an email ending in "@example.com"),
and the execute() method would contain the logic for updating the records (e.g.,
replacing the email domain with "@newdomain.com").
In addition to start() and execute(), Batch Apex also has several other methods
that can be used for things such as scheduling, error handling, and logging. These
methods include finish(), database.update(), and system.debug()
Yes, you can call a future method from a batch Apex class.
We can call a future method from a batch by using the System.scheduleBatch method.
This method takes in the batch class, the batch name, and the batch size, and schedules
the batch to run in the future. In the batch class, we can then call the future method
using the @future annotation. For example:
@future
public static void futureMethod() {
// Code for future method
}
Note that future methods can only be called from batch Apex that is scheduled to
run in the future. Attempting to call a future method from a batch that is not
scheduled to run in the future will result in an error.
Workflow and Process Builder are both tools in Salesforce that allow users to automate
business processes. However, there are some key differences between the two:
Overall, the main difference between workflow and Process Builder is that the latter
offers more advanced capabilities and flexibility for automating business processes in
Salesforce.
14) What are the limitations of workflow?
1. Limited number of workflow rules and actions that can be created for an object
2. Limited number of time-dependent actions that can be scheduled
3. Limited ability to set up complex logic and conditional branching within a
workflow rule
4. Limited ability to customize error messages and notifications
5. Limited ability to integrate with external systems and APIs
6. Limited ability to handle complex, multi-step processes and approvals.
In Salesforce, the order of execution refers to the sequence in which various triggers,
processes, and flows are executed when a record is created or updated. The order of
execution is as follows:
1. Before triggers
2. Record-level security
3. Assignment rules
4. Auto-response rules
5. Workflow rules and field updates
6. Validation rules
7. After triggers
8. Escalation rules
9. Roll-up summary fields
10. Criteria-based sharing
11. Process builder
12. Flow builder
13. Custom buttons and links
14. Apex classes and triggers
15. User-defined exceptions
This order of execution is important to consider when designing and
implementing customizations in Salesforce, as it can affect the outcome of
actions and processes.
17) What are some differences that you observed in Lightning Ui and Classic UI?
The bucket field in reports is a field that allows users to group data into specific
categories or "buckets" for easier analysis and visualization. This can be useful for
organizing large sets of data into manageable groups and identifying trends or patterns
within the data. Bucket fields are commonly used in various types of reports, such as
financial reports, marketing reports, and sales reports.
1. Role-based security: This type of security assigns access levels to specific roles or
groups within the organization.
2. Attribute-based security: This type of security grants access to specific records
based on specific attributes of the user, such as department or job title.
3. User-based security: This type of security assigns access levels to individual
users based on their specific permissions and access needs.
4. Record-level security: This type of security grants access to specific records or
fields within a record, based on the user's access level.
5. Field-level security: This type of security restricts access to specific fields within
a record, based on the user's access level.
6. Data encryption: This type of security uses encryption algorithms to protect data
from unauthorized access.
7. Access controls: This type of security uses user authentication and permissions
to control who can access specific records and data.
Cloud computing is a type of computing where scalable and often virtualized resources
are provided as a service over the internet. It allows users to access and use these
resources on-demand, without having to manage or maintain the underlying
infrastructure. This can include computing power, storage, networking, and other
services. Cloud computing can be used for a wide range of applications, from running
complex data analytics to hosting websites and delivering software applications.
Role: A role is a way to group users with similar access and privileges. It determines
what users can see and do within the organization.
Profile: A profile is a set of permissions that determine what users can do in Salesforce,
such as create, read, edit, and delete records. It is a collection of settings and
permissions that dictate the level of access a user has to the organization's data and
features.
In summary, a role is a way to group users with similar access and privileges, while a
profile is a set of permissions that determine what users can do in Salesforce.
Lightning App Builder is a tool provided by Salesforce that allows users to easily create
custom applications for their organization without the need for coding or programming
knowledge. It allows users to drag and drop pre-built components to create the desired
functionality and design of the app. Lightning App Builder is part of the Lightning
platform and is designed to work seamlessly with other Salesforce tools and services.
Can you please show me how to create picklist by sharing the screen in dev org?
1. In the developer org, navigate to the object where you want to create the picklist.
2. Click on the Fields tab, then click on the New button.
3. Select the Picklist option from the field type dropdown menu.
4. Enter a field label and name for the picklist.
5. Under the Picklist Values section, enter the values that you want to include in the
picklist.
6. Click on the Save button to create the picklist.
7. Share your screen with the desired audience and demonstrate the creation of the
picklist.
What is Aura?
Page layouts and record types in Salesforce are tools that allow administrators to
customize the way data is displayed and organized within the platform.
Page layouts determine the fields, sections, and related objects that are visible on a
specific page, such as a record detail page or a report. This allows administrators to
tailor the information displayed to specific user roles or business processes.
Record types are used to categorize records based on their type or purpose. For
example, an account record type may be used to differentiate between different types of
accounts, such as customers and vendors. Record types can be used in conjunction with
page layouts to display different sets of fields and information for different record types.
Together, page layouts and record types provide a flexible way to manage and organize
data within Salesforce, allowing administrators to customize the platform to meet the
unique needs of their organization.
What is Lead?
Leads are potential customers or contacts in Salesforce that have expressed interest in a
company's products or services. They are typically entered into the system by sales
representatives who have had initial interactions with these individuals and have
determined that they are qualified prospects for the business. The lead status and
information is tracked and managed in Salesforce, allowing sales teams to follow up and
convert leads into customers.
1. Encapsulation: Encapsulation is the idea of bundling data and the methods that
operate on that data within a single unit, or object. This helps to keep the data
safe from outside interference and misuse.
2. Abstraction: Abstraction is the idea of exposing only the essential features of an
object, while hiding the implementation details. This helps to reduce complexity
and increase reusability.
3. Inheritance: Inheritance is the ability of a class to inherit properties and
methods from a parent class. This allows you to create a new class that is a
modified version of an existing class, without having to rewrite all of the code in
the new class.
4. Polymorphism: Polymorphism is the ability for a class to take on multiple
forms. For example, a single class might be able to represent multiple types of
objects, depending on how it is used.
By using these concepts, OOP languages allow you to develop programs that are
modular, flexible, and easy to maintain.
In Apex, these concepts are used to create and manage classes, objects, and interfaces.
For example, Apex allows developers to create custom objects, which represent real-
world entities such as accounts, contacts, and opportunities. These objects can then be
inherited by other classes to share common attributes and behaviours. Polymorphism
allows Apex classes to have multiple methods with the same name, but different
implementations, while encapsulation ensures that the internal details of a class are
hidden from the outside world. Abstraction allows developers to define the essential
characteristics of an object without exposing its internal implementation details.
Overall, the OOPS concepts in Apex provide a structured and organized approach to
developing software applications, which can help improve their maintainability,
reusability, and extensibility.
The main difference between SAAS and PAAS is that SAAS provides a pre-built software
application that customers can use, while PAAS provides a platform for customers to
build and deploy their own applications. SAAS is focused on delivering a specific
application to customers, while PAAS is focused on providing the infrastructure and
tools for customers to build their own applications.
// Apex code snippet to update the industry field for a specific account
Account myAccount = [SELECT Id, Name, Industry FROM Account WHERE Name = 'My
Company']; myAccount.Industry = 'Technology'; update myAccount;
greetUser("John"); //
Write a C Code.
#include <stdio.h>
int main() {
int a = 5;
int b = 10;
int c = a + b;
return 0;