1. How can you handle errors in a Flow?
You can handle errors in Flows using Fault Paths. When an error occurs in a Flow
element, the Flow can be directed to a Fault Path, where you can define how the error
should be handled, such as sending an email notification, creating a log record, or
displaying a custom error message to the user.
2. How do Before-Save Record-Triggered Flows differ from After-Save
Record-Triggered Flows?
Before a record is saved to the database, Before-Save Record-Triggered Flows are
initiated. This means they can modify the record without needing an additional DML
operation. They are more efficient for this reason.
After-Save Record-Triggered Flows run after the record is saved and are suitable for
actions that should happen post-record save, such as sending notifications or creating
related records.
3. What Is DML In Salesforce?
DML stands for Data Manipulation Language through which we can make database
changes.
4. What is mixed DML operation error?
A mixed DML operation occurs when we try to insert or update both setup and
non-setup objects in a single transaction
5. What is setup and non-setup object ?
a. Setup Objects: Setup objects in Salesforce are primarily related to system
configuration and administration. Examples of setup objects include User, Profile,
Role, Permission Set, and Organization. These objects store critical information
that governs the behavior and security of the Salesforce instance.
b. Non-Setup Objects: Non-setup objects, also known as standard or custom
objects, are the entities where users store and manipulate data. These objects
represent the core business entities, such as Account, Contact, Opportunity, or
any custom objects created by administrators or developers.
RAJALAKSHMI
6. What is the DML limit in Salesforce flow?
In Salesforce, managing DML operations within flows is critical to avoid hitting
governor limits and ensure optimal performance. The platform enforces a limit of 150
DML statements per transaction, which means each insert, update, delete, or upsert
counts towards this cap. Furthermore, there is a maximum limit of 10,000 records that
DML statements are able to handle within a single transaction. To stay within these
boundaries, it’s best practice to aggregate records into collections and perform DML
operations outside loops.
7. What is the purpose of the Upsert action in Salesforce? (dataloader)
The Upsert feature allows you to specify that a form submission should update an
existing record in Salesforce if it exists already; otherwise create new records.
The Upsert action allows you to specify other External ID fields to use in place of
the default internal ID. This can save you the need for performing a Salesforce
query (Connector Call lookup) to find the InternalID based on another value such
as Name from your source data.
8. Limits Per Transaction
● Total number of SOQL queries issued: 100
o You can only use a maximum of 100 data elements that retrieve the data.
● Total number of DML statements issued: 150
o You can only use a maximum of 150 data elements that modify the data.
(Note that these elements will also be multiplied if they are within the loop,
which is why you often hear the best practice is “No Pink in Loop”.)
● Total number of records retrieved by SOQL queries: 50,000
o You can only retrieve a maximum of 50,000 records.
● Total number of records processed as a result of DML statements: 10,000
o You can only modify a maximum of 10,000 records.
● Maximum CPU time on the Salesforce servers: 10,000 milliseconds
o CPU time is the amount of time that the servers use to process your
solution. The maximum is 10,000 milliseconds (10 seconds).
● Total number of duplicate updates allowed in one batch: 12
o You can only update the same record a maximum of 12 times.
RAJALAKSHMI
9. What is flow in salesforce?
Flows allow us to build complex business automation using clicks instead of code.
We can be able to handle the majority of complex business requirements without
coding.
10. What are the interaction elements available in flow?
Interaction elements include Screen, Action, or Subflow.
Screen element: only available in a Screen Flow, allows to present a screen to the
user. This screen can display information from the data your Flow is working on,
or it can be used to collect information from the user.
Action element: allows to pass data through to a pre-existing standard or
custom action such as Send Email, a Quick Create, or a custom Apex action.
Sub-flow element: allows you to call another Flow.
11. What are the data elements in saleforce?
Create Records
The Create Records element allows you to create new records in your Salesforce
org’s database. It can be used to create one or multiple records.
Update Records
The Update Records element is very similar to the Create Records element,
except that it makes changes to existing records instead of creating new ones.
Get Records
The Get Records element is used to “get” one or more records from the database
based on filter criteria set in the component. Getting a record stores its values
within the flow, as well as the values of records it looks up to (such as a Contact
record looking up to an Account record in its AccountID field), allowing you to
reference it in other flow elements and resources.
Delete Records
The Delete Records element is used to delete records from the database. Similar
to the Update Records element, you can either delete records stored in variables
defined earlier in the flow, or specify the object and filter criteria needed to find
the records you wish to delete. Similar to the Update Records element, the Delete
Records element will delete all records that meet the filter criteria—make sure to
be specific.
RAJALAKSHMI
12. What is a Collection?
A Collection (also known as a Collection Variable) is used when you have
more than one variable that you want to group together. These may be Record
Variables or other variable types (Text, Number, etc).
Collections behave very similarly to Apex Lists in that they group multiple
variables together and are ordered (whereas Apex Sets are not ordered).
13. What are logic elements available in flow?
. Decisions: allows us to split the Flow depending on the data that is being
sent through it.
. Assignments: allows to give a value to a variable.
. Loops: allows to handle multiple variables at once using collections.
14. What Is a Rollback Strategy in Salesforce? A high-level definition of a
Salesforce roll back strategy is a set of procedures you put in place to revert
changes to your production environment. These procedures restore your Salesforce
org to the stable state it was in before your previous deployment.
15. What are the types of flows?
Screen Flow is called through a button or action or displayed in a Lightning Page
or the Utility Bar and appears as a screen to the user to interact with. This cannot
be automatically called.
Schedule-Triggered Flow runs automatically to a recurring schedule. This is
handy for tasks that need to be performed daily on a set of records, or to handle
jobs that run frequently.
Auto-launched Flows are called through Apex, Process Builder, or another Flow.
They can be used to perform actions automatically behind the scenes.
Record-Triggered Flows begin when a record is created or updated, very similar
to Process Builder.
Platform Event-Triggered Flows are called when a platform event is received,
like an Auto launched Flow.
RAJALAKSHMI
16. What is the difference between run and debug flow?
The "run" process focuses on executing code to observe its behavior and output, while
"debugging" is a specialized process to identify and fix issues that may arise during
runtime. "Run" is used to validate the normal behavior of the software, while
"debugging" is used to identify and fix abnormal behavior or errors.
17. What is difference between WhoId and WhatId in the Data Model of Task
WhoID refers to people things. So that would be typically a Lead ID or a Contact ID
WhatID refers to object type things. That would typically be an Account ID or an
Opportunity ID
18. How many versions of flow can be active at once?
You can have multiple versions of a Flow, but you can only activate one version at a time.
19. Workflow vs process builder vs flows
Workflow Process Builder Lightning Flow
Send Email Workflow + Process Builder +
Create Tasks Create Records Record CRUD
Field Updates Launch Flows Launch Flows
Outbound Post to Chatter Iterate Record List
Messages*
Invoke Apex*
Submit for approval
20. What is Process Builder?
Process Builder is an automated Salesforce tool that allows you to control the order
of actions or evaluate the criteria for a record.
21. What is workflows in salesforce?
A Workflow in Salesforce is a sequence of automated steps that certain events or
actions can trigger. These automated steps can include field updates, email alerts, task
creation, and outbound messages, among other things.
RAJALAKSHMI
22. Why process builder and workflows retire ?
Process Builder Disadvantages:
o You cannot edit a process once it's saved. For editing, you need to clone it
first. Standard Workflow cannot update some standard fields, such as
activity due date. It cannot send outbound messages.
o You can’t change the order in which actions are specified and executed
o Deleting an object removes all the processes associated with that object
o If an action fails, the entire process fails and the system displays an error
o Cannot perform more complex actions
o Cannot send an outbound message (communication with another system)
Workflow disadvantage:
o You cannot delete records
o There’s no way to assign actions in a sequence
o One workflow can only contain one set of entry criteria
o It can only update some fields on a parent record
23. What is the interface in Salesforce?
The interface in Salesforce refers to the user interface (UI) elements and
layouts that users interact with while using Salesforce applications. It
encompasses the visual components, navigation, and how users access and
manage data within the Salesforce platform. The Salesforce interface is designed
to be intuitive and user-friendly, facilitating efficient management of customer
relationships, sales data, and business processes.
RAJALAKSHMI