Loading...

A flow represents an automated system designed to streamline business operations by gathering data and executing actions within your Salesforce organization or an external platform. Flows facilitate user interaction by presenting screens that lead them through the defined business procedure.
These flows are not restricted to any specific entity but rather operate based on records. They can search for, generate, modify, and remove records across various entities. Building flows is made possible through Flow Builder, an intuitive, point-and-click interface.
Orchestration, on the other hand, refers to a system that constructs complex business processes by orchestrating a sequence of flows. Unlike flows, orchestrations prioritize the user experience, enabling the management of diverse processes involving multiple users and organizational segments within a unified framework. The feature of Flow Orchestration in Salesforce facilitates the monitoring of these orchestrated processes.
salesforce

Some Common Use cases:

  • Advanced Approval Processes: Orchestrate a multi-stage approval process involving different teams and decision criteria
  • Task Lists for Groups: Assign tasks to multiple users in sequence or parallel. Add the Work Guide component to record pages so users know exactly what to do
  • Order Fulfillment: Automate the order fulfillment process, including tasks like inventory checks, shipping updates, and customer communication
  • Employee Onboarding: Consider employee onboarding that requires a new employee to go through a multi-level, multi-user, multi-system approval process to get equipment and access to digital company resources
  • Service Delivery Orchestration: Multiple teams need to action various steps throughout a client delivery process in a specific order

Difference between Flow and Orchestration flow

Feature Flow Orchestration
Purpose Automates processes via data actions Constructs complex business workflows
Record Centric Yes No
Object Dependency Not tied to a specific object Can involve multiple objects, users
Interface Guides users through screens Monitors operations, enhances efficiency
Tool Uses Flow Builder (Point-and-click) Employs Flow Orchestration

Building Blocks of Flow Orchestration in Salesforce 

1.Stages:

A stage groups related steps, organizing them into a logical phase. Stages are executed sequentially, and only one stage in an orchestration can be in progress at a time. You configure the conditions that must be met for the stage to be considered complete.

2. Steps:

Steps are grouped in stages and can be run sequentially or concurrently. There are three types of steps:

  • Interactive steps: Assign the completion of an active screen flow to a person, group, or queue and require user intervention.
  • Background steps: Run an active auto-launched flow synchronously or asynchronously and have no user interaction.
  • MuleSoft steps: Run an action imported from a MuleSoft operation and have no user interaction.

Salesforce

3. Flow Orchestration Work Items:

When an interactive step in an orchestration runs, it creates a work item and assigns it to a user, group, or queue. The orchestration run then sends an email with a link to the specified record page to all assigned users. They complete the work in the Orchestrator Work Guide component on the specified record page.

4. Decision:

Evaluate a set of conditions, and then route users through the orchestration based on the outcomes of those conditions. This element performs the equivalent of an if-then statement.

Salesforce

In this blog, we will explore a practical use case for Salesforce’s powerful Orchestration Flow feature. We will create a multi-step, multi-stage scenario that automates the process of opening a new bank account for a customer and guiding them through their first transaction.

Steps to Follow

1. Create a Screen Flow: The first step is to create a Screen Flow. This flow will guide the customer through the process of creating a transaction. We will later incorporate this flow into our Orchestration Flow.

2. Create an Autolaunched Flow: Next, we will create an Autolaunched Flow to send an email to the customer. This flow requires the customer’s email ID and a template for the email. For this example, we will create a simple template with the message: “Congratulations! Your new account has been created and your first transaction has been added.”

Salesforce

3. Create the Orchestration Flow:

Now, we will create the Orchestration Flow. We need to define the trigger criteria for this flow. In this case, we will set the flow to run whenever a new bank account is created.

4. Add Steps to the Orchestration Flow:

The next step is to add steps to our Orchestration Flow. Each step corresponds to a stage in our process.

5. Add Interactive Stage:

The first stage we will add is an Interactive Stage. This stage will use the Screen Flow we created in Step 1 to interact with the user. Make sure this flow is active before you proceed. In these steps, I am selecting the user who will perform the action, as well as the record on which the action will be performed.

Salesforce 6. Add Automated Stage:

The second stage we will add is an Automated Stage. This stage will use the Autolaunched Flow we created in Step 2 to send an email to the customer.

Salesforce 7. Activate the Flow and Add to the Record Page:

Once all stages are added, we can activate the flow and add the Orchestration Work Guide to the record page.

Salesforce

Test the Flow:

Finally, we can run a test to ensure that the flow is working as expected.

Here is a demo video that walks you through the entire process.

Conclusion

Salesforce’s Orchestration Flow is a powerful tool that allows us to create complex, multi-step, multi-stage scenarios. In this blog, we covered a simple scenario to demonstrate its capabilities. However, the possibilities are endless. You can create more complex scenarios based on your specific business needs,

Do not hesitate to reach out to us if you need help orchestrating Flow and for more blogs, Stay connected!

Related Articles

Sticky notes aren’t just for your desk anymore! In this tutorial, we’ll create a Lightning Web Component (LWC) in Salesforce that allows you to pin notes on your app page or record page. With a clean, interactive UI, these digital sticky notes ensure you never forget important tasks or details. What Will You Learn? By […]

Read More
How to Create Dynamic, Animated Charts in Salesforce LWC using Chart.js

Bring Salesforce data to life with dynamic charts inside Lightning pages! While Salesforce dashboards are powerful, sometimes business users want visual insights without leaving their current page. That’s where Chart.js with Lightning Web Components (LWC) becomes a game-changer. In this step-by-step guide, you’ll learn how to: Upload Chart.js as a static resource in Salesforce. Build […]

Read More
How to Encrypt and Decrypt Data in Salesforce Using Apex Crypto Class

Data security is more important than ever. Whether you’re storing customer information, sensitive business data, or private communication, ensuring that your data stays safe is critical. Salesforce provides built-in tools to help with this, and one of the most powerful yet easy-to-use approaches is encryption and decryption using the Apex Crypto class. In this blog, […]

Read More
Benefits & Step-by-Step Setup Guide for Salesforce Code Analyzer

When building on the Salesforce platform, code quality and security are non-negotiable, especially before submitting your app for a Salesforce Security Review. Catching bugs and vulnerabilities early not only saves time but also ensures compliance with Salesforce’s best practices. That’s where the Salesforce Code Analyzer comes in. This open-source tool scans your Apex classes, triggers, […]

Read More
A Step-by-Step Guide to Integrate Zoho CRM with Salesforce (Without Coding)

Managing data across multiple CRMs can be a real challenge for businesses that want a single source of truth. If your teams use Zoho CRM but want to move or sync all records seamlessly into Salesforce, you don’t need to write a single line of code. Thanks to MultiSync Made Easy, the integration process is […]

Read More
How to Integrate Salesforce with Copilot

Integrating Salesforce with Copilot is becoming an essential step for organizations aiming to streamline workflows, automate client data management, and unlock the power of AI-driven CRM. By connecting these two platforms, businesses can centralize customer information, reduce manual tasks, and accelerate growth. This guide walks you through the Salesforce–Copilot integration process with clear steps, Apex […]

Read More