Skip to main content

Install an AppExchange Solution

Learning Objectives

After completing this unit, you’ll be able to:

  • Describe Salesforce Labs solutions.
  • Install an AppExchange solution in your org.
  • Add an AppExchange solution to a process flow.

Follow Along with Trail Together

Want to follow along with an expert as you work through this step? Take a look at this video, part of the Trail Together series.

(This clip starts at the 20:32 minute mark, in case you want to rewind and watch the beginning of the step again.)

Introduction

Grab your mouse and your sense of adventure. In this unit, we take you step-by-step through the process of installing and using an AppExchange solution. Then, you get to apply what you learned with a hands-on challenge. 

Here’s a high-level summary of the tasks at hand.

  1. Install the Service Agent Script for Salesforce Flow component.
  2. Create a flow.
  3. Add the component to the flow.
  4. Run the flow.

Get to Know Salesforce Labs

A Salesforce Labs banner image with mountains in the background and test tubes and beakers in the foreground

In this exercise, we use a Salesforce Labs solution. If your mind just conjured up an image of mad scientists and petri dishes, think again. Salesforce Labs is a program that lets Salesforce engineers and other trailblazing employees create solutions and share them with you on AppExchange. They range from simple utilities to entire vertical solutions and are:

  • Free.
  • Ready to install.
  • Designed to solve common business challenges.
  • Open source. You can peek under the hood to see how they work and customize them as needed. It’s a great way to learn more about how the platform works.

Last but not least, Salesforce Labs solutions are an excellent way to see what’s new and exciting from Salesforce. We’re constantly launching Labs solutions that use our newest products and features.

Install a Flow Component

Your first task is installing the Service Agent Script for Salesforce Flow component in your Trailhead Playground. 

Let's get started by opening your Trailhead Playground and getting your username and password. Scroll to the bottom of this page and click Launch. If you see a tab in your org labeled Get Your Login Credentials, great! Follow the steps below. 

If not, click App Launcher to launch the App Launcher, then click Playground Starter and follow the steps. If you don’t see the Playground Starter app, check out Find the Username and Password for Your Trailhead Playground on Trailhead Help.

  1. Click the Get Your Login Credentials tab.
  2. Make a note of your Trailhead Playground username, which is displayed on the page.
  3. Click Reset My Password. This sends an email to the address associated with your username.
  4. When you get the email, click the password reset link.

Enter a new password, confirm it, and click Change Password

Now log in to AppExchange and install the Service Agent Script for Salesforce Flow component. 

  1. Open a new private browsing window. In Chrome, click File | New Incognito Window. In Safari, click File | New Private Window.
  2. In the private browsing window, navigate to https://appexchange.salesforce.com.
  3. Click Log In.
  4. Click Salesforce.
  5. On the login page that appears, enter the username and password you just got from your Trailhead Playground and click Log In.
  6. If the Link to Trailblazer page appears, click Link and Log In to continue.
  7. In the search bar, enter Service Agent Script for Salesforce Flow and click the component listing. (If you can’t find it, here’s a direct link. On the login page that appears, log in with your Trailhead Playground credentials.)
  8. Click Get It Now.
  9. From the Connected Salesforce Accounts dropdown, choose your Trailhead Playground username, if necessary.
  10. Click Install in Production. Yes, production. Your Trailhead Playground is a production instance for your personal use. You can make customizations in your playground without impacting anything else (in this case, your production org).
  11. Check the username on the installation confirmation screen to confirm that you're installing the package in your Trailhead Playground, then select the box to agree to our terms and conditions.
  12. Click Confirm and Install.
  13. If prompted, enter your Trailhead Playground credentials again and click Log In.
  14. You’re the only user who needs access to this solution, so select Install for Admins Only and click InstallA view of the Install for Admins Only option selection in the installation
  15. The package might take a few minutes to install. Once you see a message telling you the installation is complete, click Done to see the package in your org.

Your org displays the Installed Packages page in Setup. From here, you can view the details of individual packages and perform administrative tasks, such as uninstalling packages. 

Enable Lightning Runtime for Flows

Service Agent Script for Salesforce Flow is an Aura component. To run a flow that contains an Aura component, you must enable Lightning runtime for flows in your playground org.

  1. In your playground, click Setup and select Setup.
  2. Enter process automation in the Quick Find box, and select Process Automation SettingsThe setup menu with a process automation in the quick find search box, and a highlight on Process Automation Settings
  3. Verify that Enable Lightning runtime for flows is selected. If it isn’t, select it and click SaveProcess automation settings with a highlight on Enable Lightning for runtime flows

Create a Flow

Now, create a flow that uses the Service Agent Script for Salesforce Flow component to display a script from within the flow. 

  1. In your playground, click   Setup and select Setup.
  2. Enter flow  in the Quick Find box, and select FlowsThe setup menu with the word Flow in the quick find search box, and a highlight on Flows
  3. Click New Flow.
  4. Select Screen Flow, and click Create to launch Flow Builder.The New Flow modal with a create button and a highlight on Screen Flow

Add a Screen Element to the Flow

Flow Builder is a point-and-click tool for building flows. The Flow Builder toolbox lists available elements. To add an element to the canvas, drag it from the toolbox onto the canvas. To include a visual element, such as a script, in a flow, use the Screen element. Flow Builder opens by default in Auto-Layout.

  1. In Flow Builder, click the arrow next to Auto-Layout (1) and select Freeform (2).
    The layout modal with a callouts on Auto-Layout (1) and Freeform (2)
  2. Drag the Screen element onto the canvas.        Flow Builder, showing where to drag the Screen element from the toolbox to the canvas
  3. In the New Screen window, set the screen’s Label to Retention Offer Screen. The API Name automatically populates as Retention_Offer_Screen.        The New Screen form with the Label property label value set to “Retention Differ Screen”
  4. Drag the agentScript component onto the screen element. You can find the Flow solutions that you install from AppExchange in the Custom section of the components list.        The New Screen form with the agentScript componentt
  5. Select agentScript and, for API Name (1), enter retention_offer_script.
  6. For Script (2), enter We have a special offer for youThe agentScript configuration form with API Name (1) and Script (2) fields
  7. Click Done.

Connect the Flow Elements

Next, connect the Start and Screen elements so that the script loads when the flow runs.

  1. Drag the connector node at the bottom of the Start element (1) onto the Retention Offer Screen element (2).        The Flow Builder canvas with the Start of element (1) connected to the Retention Offer screen element (2)

Save and Run the Flow

You’ve configured the screen element and added it to the flow. Save the flow and you’re ready to run.

  1. Click Save.
  2. For Flow Label, enter Retention Offer Flow. The Flow API Name automatically populates with Retention_Offer_Flow.
  3. Click SaveThe Save the flow form with callouts on the Flow Label (1) and Save (2)
  4. Click Run.
  5. Verify the script displays on the screen.
    The script displays on the screen when the flow runs.

Well done! You used Flow Builder to create a flow that uses the Salesforce Flow component you installed from AppExchange. 

Resources

Keep learning for
free!
Sign up for an account to continue.
What’s in it for you?
  • Get personalized recommendations for your career goals
  • Practice your skills with hands-on challenges and quizzes
  • Track and share your progress with employers
  • Connect to mentorship and career opportunities