Getting Started with Salesforce Flow – Part 75 (Deploy Flow(s) or Process(es) Using Workbench)

Getting Started with Salesforce Flow – Part 75 (Deploy Flow(s) or Process(es) Using Workbench)

Last Updated on October 16, 2021 by Rakesh Gupta

Big Idea or Enduring Question:

How do you deploy Flows or Processes using Workbench?  

Objectives:

After reading this blog post, the reader will be able to:

  • Understand how to use Workbench retrieve change set
  • Understand how to use Workbench to deploy flows
  • Understand how to use Workbench to deploy processes
  • Deploy components to any org using Workbench

Business Use Case

Pamela Kline is working as a System administrator at Universal Containers. She has developed a Flow (Getting Started with Salesforce Flow – Part 50 (Welcome New Users by Default – Auto Follow them in Chatter!)) in her Trailhead playground and is done with testing. Now, she wants to deploy the flow to her UAT Sandbox. 

Automation Champion Approach (I-do):

Once you are done, with Flow or Process development, the next step is to deploy it. There are many ways, through which, you can deploy or distribute, Flow(s) or Process(s), from one org to another:

This blog is a sequel to my previous blog – Distribute Process(es) using the Visual Studio Code. In the previous blog, I discussed how to deploy Flow(s), or Process(es) to another sandbox using the Visual Studio Code. 

Today, I am going to discuss how to deploy a Process(s) or Flow(s) using the WorkbenchWorkbench is a powerful, web-based suite of tools designed for administrators and developers to interact with Salesforce.com organizations via the Force.com APIs. Workbench allows users to describe, query, manipulate, and migrate both data and metadata in Salesforce.com organizations directly in their web browser with a simple and intuitive user interface. Workbench is free to use, but is not an official Salesforce.com product. 

Workbench also allows us to deploy the metadata components like  Flows and Processes in different environments – such as, Developer Sandbox, Production Org or Trailhead Playground.

Migrate Metadata Components using Workbench

Follow the instructions to create an Package and deploy it to another Salesforce org using Workbench.

  1. The very first step is to create an Outbound Change Set or Package in the source org, i.e. Trailhead Playground in this scenario. It doesn’t matter which option (Outbound Change Set or Package) have selected to go forward, as long as it contains all metadata components.
    1. Follow the instructions to create an Outbound Change Set.
    2. Follow the instructions to create a Package.
  2. Before proceeding ahead, make sure that the package you created in Trailhead playground looks like the following screenshot:
  3. The next step is to retrieve the package or change set using workbench.
    1. Open the Workbench and login with your Trailhead playground username and password.
    2. Make sure that you’ve selected Production for Environment option.
    3. Navigate to Migration tab and select Retrieve option.
    4. Under Retrieve
      1. Package Names: Blog_50
      2. Single Package: Check
    5. Click Next.
    6. Click Retrieve.
    7. Click Download Zip File select your Desktop as the place to save the file in so it is easy to find later on.
    8. At the end, logout from the Workbench.
  4. The last step is to upload the package to Pamela’s UAT Sandbox.
    1. Open the Workbench and login with your UAT Sandbox username and password.
    2. Make sure that you’ve selected Sandbox for Environment option.
    3. Navigate to Migration tab and select Deploy option.
    4. Under Deploy
      1. Browse: Select the ZIP file from your Desktop
      2. Auto Update Package: Check
      3. Single Package: Check
      4. Ignore Warnings: Check
      5. Test Level: NoTestRun
    5. Click Next.
    6.  Confirm all of the options for deployment by clicking on the Deploy button.
    7. Wait for process to become completed.
    8. After successful deployment, you will get the message shown in the following screenshot.

Proof of Concept

At long last, here comes the final step!

Formative Assessment:

I want to hear from you!  

What is one thing you learned from this post? How do you envision applying this new knowledge in the real world? 

Let me know by Tweeting me at @automationchamp, or find me on LinkedIn.

Have feedback, suggestions for posts, or need more information about Salesforce online training offered by me? Say hello, and leave a message!

One thought on “Getting Started with Salesforce Flow – Part 75 (Deploy Flow(s) or Process(es) Using Workbench)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.