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

[Alt text: 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 Salesforce 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 Install.
    A 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 Settings.
    The 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 Save.
    Process 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 Flows.
    The setup menu with the word Flow in the quick find search box, and a highlight on Flows
  3. Click New Flow.
  4. Make sure Start from Scratch is selected, and click Next.
  5. Select Screen Flow, and click Create to launch Flow Builder.
    The Select Type 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. To add an element to the canvas, click Add Element and review the list of available elements in the Add Element menu. To include a visual element in a flow, such as a script, use the Screen element. Flow Builder opens by default in Auto-Layout.

  1. On the flow canvas, on the path after the Start element, click Add Element. Select Screen.
  2. 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”
  3. 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
  4. Select agentScript and, for API Name (1), enter retention_offer_script.
  5. For Script (2), enter We have a special offer for you.
    The agentScript configuration form with API Name (1) and Script (2) fields
  6. Click Done.

The flow canvas corresponding to the previous steps.

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 Save.
    The 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

Salesforce 도움말에서 Trailhead 피드백을 공유하세요.

Trailhead에 관한 여러분의 의견에 귀 기울이겠습니다. 이제 Salesforce 도움말 사이트에서 언제든지 새로운 피드백 양식을 작성할 수 있습니다.

자세히 알아보기 의견 공유하기